bird.instX.conf 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. ##### OSPF X #####
  2. table ospfXtable;
  3. protocol pipe master2ospfX {
  4. description "master to OSPF instance X";
  5. peer table ospfXtable;
  6. import filter { if fn_import_master_ospf("ospfX") then accept; else reject; };
  7. # XXX geht nicht als Funktion!?!:-(
  8. # export filter { if fn_export_master_ospf() then accept; else reject; };
  9. export filter { if proto ~ "ospf*" then reject;
  10. else if fn_am_local_to_ospf_table() then accept;
  11. else reject; };
  12. }
  13. protocol bgp master2bgpX {
  14. router id 127.0.X.0;
  15. local 127.0.X.0 as 31371;
  16. neighbor 127.0.X.1 as 31371;
  17. next hop keep;
  18. export filter { if fn_export_master_bgpospf("ospfX") then accept; else reject; };
  19. }
  20. protocol bgp bgpXospfX {
  21. router id 127.0.X.1;
  22. local 127.0.X.1 as 31371;
  23. neighbor 127.0.X.0 as 31371;
  24. next hop keep;
  25. table ospfXtable;
  26. import filter { if fn_import_bgpospf() then accept; else reject; };
  27. export none;
  28. }
  29. protocol ospf ospfX {
  30. #debug all;
  31. table ospfXtable;
  32. import filter { if fn_import_ospf_master(X) then accept; else reject; };
  33. export filter { if fn_export_ospf(X) then accept; else reject; };
  34. include "/usr/local/etc/bird.instX.local.conf";
  35. }