bird.conf.j2 438 B

12345678910111213141516171819202122
  1. #
  2. # This file is managed by ansible. Do not edit by hand!
  3. #
  4. template bgp uplink {
  5. local as {{as}};
  6. import all;
  7. export all;
  8. next hop self;
  9. multihop 64;
  10. };
  11. {% if peers is defined %}
  12. {% for peer in peers %}
  13. protocol bgp {{peer.name}} from uplink {
  14. source address {{peer.source_ip4}};
  15. neighbor {{peer.peer_ip4}} as {{peer.as}};
  16. default bgp_med 2;
  17. };
  18. {% endfor %}
  19. {% endif %}