# # This file is managed by ansible. Do not edit by hand! # protocol direct { interface "bat*"; interface "peer-*"; interface "lo"; } {% if mesh_ipv6 is defined %} 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|ipaddr('address')}} as {{as}}; default bgp_med 4; } {% endif %} {% endfor %} {% endif %}