ansible-ffibk/roles/service-bird/templates/mwu_ipv6_peers.conf.j2

29 lines
770 B
Text
Raw Normal View History

2017-09-10 23:56:34 +02:00
#
# {{ ansible_managed }}
#
{% for network in my_wireguard_networks %}
protocol bgp mwu_{{ network.remote }} from ibgp_mwu {
{% if magic < network.remote_magic %}
source address {{ network.ipv6 | ipaddr('network') }};
neighbor {{ network.ipv6 | ipaddr('1') | ipaddr('address') }} as mwu_as;
{% else %}
source address {{ network.ipv6 | ipaddr('1') | ipaddr('address') }};
neighbor {{ network.ipv6 | ipaddr('network') }} as mwu_as;
{% endif %}
};
{% endfor %}
{% if server_type == 'gateway' %}
2019-03-02 18:10:48 +01:00
{% for item, value in bgp_legacy_servers.items() %}
2017-09-10 23:56:34 +02:00
{% if item != inventory_hostname_short %}
protocol bgp mwu_{{ item }} from ibgp_mwu {
source address mwu_address_legacy;
2017-09-10 23:56:34 +02:00
neighbor {{ value.ipv6 }} as mwu_as;
};
{% endif %}
2017-09-10 23:56:34 +02:00
{% endfor %}
{% endif %}