bird.conf.j2 555 B

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