38 lines
586 B
Text
38 lines
586 B
Text
|
{{ ansible_managed | comment }}
|
||
|
|
||
|
log syslog all;
|
||
|
|
||
|
router id {{ bird_router_id }};
|
||
|
|
||
|
protocol kernel {
|
||
|
scan time 60;
|
||
|
import none;
|
||
|
export all;
|
||
|
persist;
|
||
|
}
|
||
|
|
||
|
protocol device {
|
||
|
scan time 60;
|
||
|
}
|
||
|
|
||
|
protocol ospf backbone {
|
||
|
import filter {
|
||
|
{% if bird_ospf_src_v6 is defined %}
|
||
|
krt_prefsrc = {{ bird_ospf_src_v6 }};
|
||
|
{% endif %}
|
||
|
accept;
|
||
|
};
|
||
|
export all;
|
||
|
area 0 {
|
||
|
{% for name, iface in bird_ospf_interfaces.items() %}
|
||
|
interface "{{ name }}" {
|
||
|
{% if iface.stub | default(false) %}
|
||
|
stub;
|
||
|
{% elif iface.broadcast | default(false) %}
|
||
|
type broadcast;
|
||
|
{% endif %}
|
||
|
};
|
||
|
{% endfor %}
|
||
|
};
|
||
|
}
|