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

29 lines
777 B
Text
Raw Permalink 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.ipv4 | ipaddr('address') }};
neighbor {{ network.ipv4 | ipaddr('1') | ipaddr('address') }} as mwu_as;
{% else %}
source address {{ network.ipv4 | ipaddr('1') | ipaddr('address') }};
neighbor {{ network.ipv4 | ipaddr('address') }} 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 }}_legacy from ibgp_mwu {
source address mwu_address_legacy;
2017-09-10 23:56:34 +02:00
neighbor {{ value.ipv4 }} as mwu_as;
};
{% endif %}
2017-09-10 23:56:34 +02:00
{% endfor %}
{% endif %}