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

23 lines
565 B
Text
Raw Normal View History

2017-09-10 23:56:34 +02:00
#
# {{ ansible_managed }}
#
{% 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;
};
{% endif %}
{% endfor %}
{% endfor %}
{% for item, value in bgp_mwu_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;
};
{% endif %}
2017-09-10 23:56:34 +02:00
{% endfor %}