2017-09-10 23:56:34 +02:00
|
|
|
#
|
|
|
|
# {{ ansible_managed }}
|
|
|
|
#
|
|
|
|
|
2018-02-23 22:27:54 +01:00
|
|
|
{% for gateway in groups['ffmwu-gateways'] %}
|
|
|
|
{% if gateway != inventory_hostname %}
|
|
|
|
protocol bgp mwu_{{ gateway.rsplit('.freifunk-mwu.de')[0] }} from ibgp_mwu {
|
|
|
|
neighbor {{ bgp_ipv6_transfer_net | ipaddr('net') | ipsubnet(64, 0) | ipaddr(hostvars[gateway]['magic']) | ipaddr('ip') }} as mwu_as;
|
|
|
|
};
|
|
|
|
|
|
|
|
{% endif %}
|
|
|
|
{% endfor %}
|
2017-09-10 23:56:34 +02:00
|
|
|
{% for item, value in bgp_mwu_servers.iteritems() %}
|
|
|
|
{% if item != inventory_hostname_short %}
|
|
|
|
protocol bgp mwu_{{ item }} from ibgp_mwu {
|
|
|
|
neighbor {{ value.ipv6 }} as mwu_as;
|
|
|
|
};
|
|
|
|
|
2018-02-23 22:27:54 +01:00
|
|
|
{% endif %}
|
2017-09-10 23:56:34 +02:00
|
|
|
{% endfor %}
|