# # This file is managed by ansible. Do not edit by hand! # template bgp ibgp { local as {{as}}; source address {{mesh_ipv6|ipaddr('address')}}; import all; export all; next hop self; direct; gateway direct; } {% for host in groups['all'] %} {% if hostvars[host]['inventory_hostname'] != inventory_hostname %} protocol bgp {{hostvars[host]['inventory_hostname_short']}} from ibgp { neighbor {{hostvars[host].mesh_ipv6}} as {{as}}; default bgp_med 4; } {% endif %} {% endfor %}