|
|
|
@ -27,7 +27,6 @@ protocol kernel kernel6 {
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{% if bird__static_unreachable | ansible.utils.ipv4 %}
|
|
|
|
|
protocol static unreachable4 {
|
|
|
|
|
ipv4 {
|
|
|
|
@ -52,12 +51,10 @@ protocol static unreachable6 {
|
|
|
|
|
|
|
|
|
|
{% if bird__ospf_broadcast_interfaces %}
|
|
|
|
|
protocol ospf v2 ospf4 {
|
|
|
|
|
|
|
|
|
|
ipv4 {
|
|
|
|
|
import all;
|
|
|
|
|
export where source ~ [ RTS_STATIC, RTS_DEVICE ];
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
area 0 {
|
|
|
|
|
{% for network in bird__ospf_stub_networks | ansible.utils.ipv4 %}
|
|
|
|
|
stubnet {{ network }};
|
|
|
|
@ -85,12 +82,10 @@ protocol ospf v2 ospf4 {
|
|
|
|
|
|
|
|
|
|
{% if bird__ospf_broadcast_interfaces %}
|
|
|
|
|
protocol ospf v3 ospf6 {
|
|
|
|
|
|
|
|
|
|
ipv6 {
|
|
|
|
|
import all;
|
|
|
|
|
export where source ~ [ RTS_STATIC, RTS_DEVICE ];
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
area 0 {
|
|
|
|
|
{% for network in bird__ospf_stub_networks | ansible.utils.ipv6 %}
|
|
|
|
|
stubnet {{ network }};
|
|
|
|
@ -112,7 +107,6 @@ protocol ospf v3 ospf6 {
|
|
|
|
|
};
|
|
|
|
|
{% endfor %}
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
|
@ -172,23 +166,18 @@ filter bgp{{ version }}_{{ direction }}_{{ session.name }} {
|
|
|
|
|
| ansible.utils.ipaddr(version=version)
|
|
|
|
|
| first %}
|
|
|
|
|
protocol bgp bgp{{ version }}_{{ session.name }} {
|
|
|
|
|
|
|
|
|
|
local {{ local_address }} as {{ session.local.as }};
|
|
|
|
|
neighbor {{ remote_address }} as {{ session.remote.as }};
|
|
|
|
|
|
|
|
|
|
{{ "ipv4" if version == 4 else "ipv6" }} {
|
|
|
|
|
import filter bgp{{ version }}_import_{{ session.name }};
|
|
|
|
|
export filter bgp{{ version }}_export_{{ session.name }};
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
{% endfor %}
|
|
|
|
|
{% endfor %}
|
|
|
|
|
|
|
|
|
|
{% if bird__radv_interfaces %}
|
|
|
|
|
protocol radv {
|
|
|
|
|
|
|
|
|
|
{% for name, iface in bird__radv_interfaces.items() %}
|
|
|
|
|
interface {{ name | enquote }} {
|
|
|
|
|
max ra interval {{ bird__radv_max_interval | int }};
|
|
|
|
@ -200,10 +189,8 @@ protocol radv {
|
|
|
|
|
{% endfor %}
|
|
|
|
|
};
|
|
|
|
|
{% endfor %}
|
|
|
|
|
|
|
|
|
|
{% for address in bird__radv_dns_servers %}
|
|
|
|
|
rdnss {{ address | ipaddr }};
|
|
|
|
|
{% endfor %}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
{% endif %}
|
|
|
|
|