|
@@ -2,10 +2,12 @@
|
|
|
# This file is managed by ansible. Do not edit by hand!
|
|
|
#
|
|
|
|
|
|
-{% for meshlink in supernode_mesh_backbones%}
|
|
|
-protocol bgp {{meshlink.name}} from ibgp {
|
|
|
- source address {{supernode_mesh_ipv4|ipaddr('address')}};
|
|
|
- neighbor {{meshlink.mesh_ip}} as {{supernode_as}};
|
|
|
+{% for host in hostvars %}
|
|
|
+{% if host['ansible_fqdn'] != ansible_fqdn %}
|
|
|
+protocol bgp {{host['ansible_hostname']}} from ibgp {
|
|
|
+ source address {{mesh_ipv4|ipaddr('address')}};
|
|
|
+ neighbor {{host.mesh_ipv4}} as {{supernode_as}};
|
|
|
default bgp_med 4;
|
|
|
};
|
|
|
+{% endif %}
|
|
|
{% endfor %}
|