ansible/roles/bird/templates/bird.conf.j2
Jeltz 22c970d9b4
Some checks failed
continuous-integration/drone/push Build is failing
Add missing ';' in bird config
2021-03-07 23:49:37 +01:00

42 lines
870 B
Django/Jinja

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 %}