bird: add OSPF stubnet support

This commit is contained in:
jeltz 2022-12-21 16:51:43 +01:00
parent 8863eed924
commit 618cad720a
Signed by: jeltz
GPG key ID: 800882B66C0C3326
2 changed files with 7 additions and 0 deletions

View file

@ -1,5 +1,6 @@
--- ---
bird__ospf_stub_interfaces: [] bird__ospf_stub_interfaces: []
bird__ospf_stub_networks: []
bird__ospf_broadcast_interfaces: {} bird__ospf_broadcast_interfaces: {}
bird__ospf_hello: 2 bird__ospf_hello: 2
bird__ospf_retransmit: 5 bird__ospf_retransmit: 5

View file

@ -58,6 +58,9 @@ protocol ospf v2 ospf4 {
}; };
area 0 { area 0 {
{% for network in bird__ospf_stub_networks | ansible.utils.ipv4 %}
stubnet {{ network }};
{% endfor %}
{% for name, iface in bird__ospf_broadcast_interfaces.items() %} {% for name, iface in bird__ospf_broadcast_interfaces.items() %}
interface {{ name | enquote }} { interface {{ name | enquote }} {
type broadcast; type broadcast;
@ -86,6 +89,9 @@ protocol ospf v3 ospf6 {
}; };
area 0 { area 0 {
{% for network in bird__ospf_stub_networks | ansible.utils.ipv6 %}
stubnet {{ network }};
{% endfor %}
{% for name, iface in bird__ospf_broadcast_interfaces.items() %} {% for name, iface in bird__ospf_broadcast_interfaces.items() %}
interface {{ name | enquote }} { interface {{ name | enquote }} {
type broadcast; type broadcast;