bird.conf.j2 888 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. log syslog all;
  2. router id {{supernode_mesh_ipv4|ipaddr('address')}};
  3. protocol direct {
  4. interface "*";
  5. };
  6. protocol kernel {
  7. device routes;
  8. import all;
  9. export all;
  10. kernel table 42;
  11. };
  12. protocol device {
  13. scan time 8;
  14. };
  15. template bgp ibgp {
  16. local as {{supernode_as}};
  17. import all;
  18. export all;
  19. next hop self;
  20. multihop 64;
  21. };
  22. {% for uplink in supernode_uplinks %}
  23. protocol bgp {{uplink.name}} from ibgp {
  24. source address {{uplink.address}};
  25. neighbor {{uplink.dstaddr}} as {{uplink.as}};
  26. default bgp_med 2;
  27. };
  28. {% endfor %}
  29. {% for meshlink in supernode_mesh_backbones%}
  30. protocol bgp {{meshlink.name}} from ibgp {
  31. source address {{supernode_mesh_ipv4|ipaddr('address')}};
  32. neighbor {{meshlink.mesh_ip}} as {{supernode_as}};
  33. default bgp_med 4;
  34. };
  35. {% endfor %}