2017-09-10 23:56:34 +02:00
|
|
|
#
|
|
|
|
# {{ ansible_managed }}
|
|
|
|
#
|
|
|
|
|
2018-09-09 10:26:23 +02:00
|
|
|
{% for group in bgp_groups %}
|
|
|
|
{% for host in groups[group] %}
|
|
|
|
{% if host != inventory_hostname %}
|
|
|
|
protocol bgp mwu_{{ host.rsplit('.freifunk-mwu.de')[0] }} from ibgp_mwu {
|
|
|
|
neighbor {{ bgp_ipv4_transfer_net | ipaddr('net') | ipaddr(hostvars[host]['magic']) | ipaddr('ip') }} as mwu_as;
|
2018-02-23 22:27:54 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
{% endif %}
|
|
|
|
{% endfor %}
|
2018-09-09 10:26:23 +02:00
|
|
|
{% endfor %}
|
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 {
|
|
|
|
neighbor {{ value.ipv4 }} as mwu_as;
|
|
|
|
};
|
|
|
|
|
2018-02-23 22:27:54 +01:00
|
|
|
{% endif %}
|
2017-09-10 23:56:34 +02:00
|
|
|
{% endfor %}
|