bird.inst.conf 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. define Routed = [ 0.0.0.0/0-, 91.204.4.0/22{24,32}, 195.160.168.0/23+ ];
  2. define Unrouted_global = [ 10.0.0.0/8+, 172.16.0.0/12+ ];
  3. define potato_ospf1 = BEST;
  4. define potato_ospf2 = HOT;
  5. function fn_instance_to_potato (int inst) {
  6. case inst {
  7. 1: return potato_ospf1;
  8. 2: return potato_ospf2;
  9. else: return BEST;
  10. }
  11. }
  12. function fn_proto_to_instance (string from_proto) {
  13. if from_proto = "ospf1" then return 1; else
  14. if from_proto = "ospf2" then return 2; else
  15. if from_proto = "ospf3" then return 3; else
  16. if from_proto = "ospf4" then return 4; else
  17. if from_proto = "ospf5" then return 5; else
  18. if from_proto = "ospf6" then return 6; else
  19. if from_proto = "ospf7" then return 7; else
  20. if from_proto = "ospf8" then return 8; else
  21. if from_proto = "ospf9" then return 9; else
  22. if from_proto = "ospf10" then return 10; else
  23. if from_proto = "ospf11" then return 11; else
  24. if from_proto = "ospf12" then return 12; else
  25. if from_proto = "ospf13" then return 13; else
  26. if from_proto = "ospf14" then return 14; else
  27. if from_proto = "ospf15" then return 15; else
  28. if from_proto = "ospf16" then return 16; else
  29. if from_proto = "ospf17" then return 17; else
  30. if from_proto = "ospf18" then return 18; else
  31. if from_proto = "ospf19" then return 19; else
  32. if from_proto = "ospf20" then return 20; else
  33. if from_proto = "ospf21" then return 21; else
  34. if from_proto = "ospf22" then return 22; else
  35. if from_proto = "ospf23" then return 23; else
  36. if from_proto = "ospf24" then return 24; else
  37. if from_proto = "ospf25" then return 25; else
  38. if from_proto = "ospf26" then return 26; else
  39. if from_proto = "ospf27" then return 27; else
  40. return 0;
  41. }
  42. function fn_instance_to_bgpospf (int inst) {
  43. case inst {
  44. 1: return "bgp1ospf1";
  45. 2: return "bgp2ospf2";
  46. 3: return "bgp3ospf3";
  47. 4: return "bgp4ospf4";
  48. 5: return "bgp5ospf5";
  49. 6: return "bgp6ospf6";
  50. 7: return "bgp7ospf7";
  51. 8: return "bgp8ospf8";
  52. 9: return "bgp9ospf9";
  53. 10: return "bgp10ospf10";
  54. 11: return "bgp11ospf11";
  55. 12: return "bgp12ospf12";
  56. 13: return "bgp13ospf13";
  57. 14: return "bgp14ospf14";
  58. 15: return "bgp15ospf15";
  59. 16: return "bgp16ospf16";
  60. 17: return "bgp17ospf17";
  61. 18: return "bgp18ospf18";
  62. 19: return "bgp19ospf19";
  63. 20: return "bgp20ospf20";
  64. 21: return "bgp21ospf21";
  65. 22: return "bgp22ospf22";
  66. 23: return "bgp23ospf23";
  67. 24: return "bgp24ospf24";
  68. 25: return "bgp25ospf25";
  69. 26: return "bgp26ospf26";
  70. 27: return "bgp26ospf27";
  71. else: return "bgp?ospf?";
  72. }
  73. }