bird6.conf.j2 408 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. direct;
  10. multihop 64;
  11. }
  12. {% if peers is defined %}
  13. {% for peer in peers %}
  14. protocol bgp {{peer.name}} from uplink {
  15. neighbor {{peer.peer_ip6}} as {{peer.as}};
  16. default bgp_med 2;
  17. }
  18. {% endfor %}
  19. {% endif %}