bird6.conf.j2 550 B

12345678910111213141516171819202122
  1. #
  2. # This file is managed by ansible. Do not edit by hand!
  3. #
  4. template bgp ibgp {
  5. local as {{as}};
  6. source address {{mesh_ipv6|ipaddr('address')}};
  7. import all;
  8. export all;
  9. next hop self;
  10. direct;
  11. gateway direct;
  12. }
  13. {% for host in groups['all'] %}
  14. {% if hostvars[host]['inventory_hostname'] != inventory_hostname %}
  15. protocol bgp {{hostvars[host]['inventory_hostname_short']}} from ibgp {
  16. neighbor {{hostvars[host].mesh_ipv6}} as {{as}};
  17. default bgp_med 4;
  18. }
  19. {% endif %}
  20. {% endfor %}