bird6.conf.j2 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. #
  2. # This file is managed by ansible. Do not edit by hand!
  3. #
  4. log syslog all;
  5. router id {{supernode_mesh_ipv4|ipaddr('address')}};
  6. protocol static uplink_hostroute {
  7. import all;
  8. export all;
  9. }
  10. protocol direct {
  11. interface "*";
  12. }
  13. protocol kernel {
  14. persist;
  15. device routes;
  16. scan time 20;
  17. import all;
  18. export all;
  19. kernel table 42;
  20. }
  21. protocol device {
  22. scan time 10;
  23. }
  24. template bgp ibgp {
  25. source address {{supernode_mesh_ipv6|ipaddr('address')}};
  26. local as {{supernode_as}};
  27. import all;
  28. export all;
  29. next hop self;
  30. direct;
  31. gateway direct;
  32. }
  33. template bgp uplink {
  34. local as {{supernode_uplinks[0].as}};
  35. import all;
  36. export all;
  37. next hop self;
  38. direct;
  39. multihop 64;
  40. }
  41. {% for uplink in supernode_uplinks %}
  42. protocol bgp {{uplink.name}} from uplink {
  43. neighbor {{uplink.address_v6|ipaddr('address')}} as {{uplink.as}};
  44. default bgp_med 2;
  45. }
  46. {% endfor %}
  47. {% for meshlink in supernode_mesh_backbones %}
  48. protocol bgp {{meshlink.name}} from ibgp {
  49. neighbor {{meshlink.address_v6}} as {{supernode_as}};
  50. default bgp_med 4;
  51. }
  52. {% endfor %}