bird6.conf.j2 481 B

12345678910111213141516171819202122
  1. #
  2. # This file is managed by ansible. Do not edit by hand!
  3. #
  4. {% if supernode_uplinks is defined %}
  5. template bgp uplink {
  6. local as {{supernode_uplinks[0].as}};
  7. import all;
  8. export all;
  9. next hop self;
  10. direct;
  11. multihop 64;
  12. }
  13. {% for uplink in supernode_uplinks %}
  14. protocol bgp {{uplink.name}} from uplink {
  15. neighbor {{uplink.address_v6|ipaddr('address')}} as {{uplink.as}};
  16. default bgp_med 2;
  17. }
  18. {% endfor %}
  19. {% endif %}