log syslog all; router id {{ bird_router_id }}; protocol kernel { scan time 15; import none; export filter { krt_prefsrc = {{ bird_router_prefsrc }}; accept; }; }; protocol device { scan time 15; }; {% if bird_ospf_ifaces is defined %} protocol ospf { import all; export all; area 0 { {% for name, attrs in bird_ospf_ifaces.items() %} interface "{{ name }}" { {% if "stub" in attrs %} stub; {% else %} hello {{ attrs.hello | default(bird_ospf_hello) }}; retransmit {{ attrs.retransmit | default(bird_ospf_retransmit) }}; wait {{ attrs.wait | default(bird_ospf_wait) }}; dead {{ attrs.dead | default(bird_ospf_dead) }}; type {{ attrs.type }}; cost {{ attrs.cost }}; {% endif %} }; {% endfor %} }; }; {% endif %}