46 lines
837 B
Django/Jinja
46 lines
837 B
Django/Jinja
protocol ospf v3 int_ospf4 {
|
|
ipv4 {
|
|
import all;
|
|
export none;
|
|
};
|
|
|
|
area 0.0.0.0 {
|
|
{% for peer in internal_peers %}
|
|
interface "{{ peer.name }}" {
|
|
cost {{ ospf.default_cost }};
|
|
type pointopoint;
|
|
};
|
|
{% endfor %}
|
|
{% for interface in stub_interfaces %}
|
|
interface "{{ interface.name }}" {
|
|
cost {{ ospf.default_cost }};
|
|
type pointopoint;
|
|
stub;
|
|
};
|
|
{% endfor %}
|
|
};
|
|
}
|
|
|
|
protocol ospf v3 int_ospf6 {
|
|
ipv6 {
|
|
import all;
|
|
export none;
|
|
};
|
|
|
|
area 0.0.0.0 {
|
|
{% for peer in internal_peers %}
|
|
interface "{{ peer.name }}" {
|
|
cost {{ ospf.default_cost }};
|
|
type pointopoint;
|
|
};
|
|
{% endfor %}
|
|
{% for interface in stub_interfaces %}
|
|
interface "{{ interface.name }}" {
|
|
cost {{ ospf.default_cost }};
|
|
type pointopoint;
|
|
stub;
|
|
};
|
|
{% endfor %}
|
|
};
|
|
}
|