Commit 26f879eb authored by nanahira's avatar nanahira

template for bird

parent c2a3c03c
...@@ -47,11 +47,17 @@ protocol ospf v2 { ...@@ -47,11 +47,17 @@ protocol ospf v2 {
# cost 10; # Interface metric # cost 10; # Interface metric
# hello 5; # Default hello perid 10 is too long # hello 5; # Default hello perid 10 is too long
# }; # };
interface "mc-*" { {% for connection in connections %}
interface "{{connection.name}}" {
type ptp; type ptp;
cost 100; {% if connection.outbound %}
cost {{connection.metric}};
{% else %}
cost 99999;
{% endif %}
hello 5; hello 5;
}; };
{% endfor %}
interface "dummy0" { interface "dummy0" {
stub; # Stub interface, just propagate it stub; # Stub interface, just propagate it
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment