bird.conf 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. #
  2. # IP{{ proto }} Bird configuration (Salt managed)
  3. #
  4. {%- set node_config = salt['pillar.get']('nodes:' ~ grains['id'], {}) %}
  5. define AS_OWN = 65132;
  6. define LO_IP = {{ salt['ffho_net.get_loopback_ip'](node_config, grains['id'], proto) }};
  7. router id {{ salt['ffho_net.get_router_id'](node_config, grains['id']) }};
  8. # this pseudo-protocol watches all interface up/down events
  9. protocol device {
  10. scan time 10;
  11. };
  12. # This pseudo-protocol performs synchronization between BIRD's routing
  13. # tables and the kernel. If your kernel supports multiple routing tables
  14. # (as Linux 2.2.x does), you can run multiple instances of the kernel
  15. # protocol and synchronize different kernel tables with different BIRD tables.
  16. protocol kernel {
  17. scan time 20; # Scan kernel routing table every 20 seconds
  18. import none;
  19. # Do NOT export local unreachable routes for TE purposes
  20. export where proto != "ffho_te";
  21. }
  22. #
  23. # Load additiional configuration (IGP, FFRL, ICVPN, 'n stuff)
  24. {%- if proto == "v4" %}
  25. include "/etc/bird/ff-policy.conf";
  26. include "/etc/bird/bird.d/*.conf";
  27. {%- else %}
  28. include "/etc/bird/ff-policy6.conf";
  29. include "/etc/bird/bird6.d/*.conf";
  30. {%- endif %}