network.conf 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. #
  2. # FFHO Check Commands for network related stuff (Salt Managed)
  3. #
  4. object CheckCommand "ifupdown2" {
  5. import "plugin-check-command"
  6. command = [ "/usr/bin/sudo", FFHOPluginDir + "/check_ifupdown2" ]
  7. arguments = {
  8. "--ok_string" = "$ok_string$"
  9. }
  10. }
  11. object CheckCommand "bird_ospf" {
  12. import "plugin-check-command"
  13. command = [ "/usr/bin/sudo", FFHOPluginDir + "/check_bird_ospf" ]
  14. arguments = {
  15. "--proto" = "$proto$"
  16. "--protocol" = "$protocol$"
  17. "--interfaces_down_ok" = "$interfaces_down_ok$"
  18. "--interfaces_down_ok_file" = "$interfaces_down_ok_file$"
  19. "--ignore_missing_file" = {
  20. set_if = "$ignore_missing_file$"
  21. }
  22. }
  23. vars.proto = "4" # IP protocol version to check
  24. vars.protocol = "" # Bird OSPF protocol instance name to check
  25. vars.interfaces_down_ok = "" # List of interfaces which are OK to have no session. (Space separated list)
  26. vars.interfaces_down_ok_file = "" # List of interfaces which are OK to have no session. (One per line)
  27. vars.ignore_missing_file = false # Ignore a possible non-existent file given as --interfaces_down_ok_file
  28. }
  29. object CheckCommand "bird_bgp" {
  30. import "plugin-check-command"
  31. command = [ "/usr/bin/sudo", FFHOPluginDir + "/check_bird_bgp" ]
  32. arguments = {
  33. "--proto" = "$proto$" # IP protocol version to check
  34. "--asn" = "$asn$" # Local AS number
  35. "--ibgp" = { # Check iBGP sessions
  36. set_if = "$ibgp$"
  37. }
  38. "--ibgp_w" = "$ibgp_w$" # Warning interval for down iBGP sessions
  39. "--ibgp_c" = "$ibgp_c$" # Critical interval for down iBGP sessions
  40. "--ebgp" = { # Check eBGP sessions
  41. set_if = "$ebgp$"
  42. }
  43. "--ebgp_w" = "$ebgp_w$" # Warning interval for down eBGP sessions
  44. "--ebgp_c" = "$ebgp_c$" # Critical interval for down eBGP sessions
  45. "--disabled_ok" = { # Treat sessions disabled in bird as OK.
  46. set_if = "$disabled_ok$"
  47. }
  48. "--sessions_down_ok" = "$sessions_down_ok$"
  49. # List of sessions which are OK to be down. (Space separated list)
  50. "--sessions_down_ok_file" = "$sessions_down_ok_file$"
  51. # List of sessions which are OK to be down. (One per line)
  52. "--ignore_missing_file" = { # Ignore a possible non-existent file given as --sessions_down_ok_file
  53. set_if = "$ignore_missing_file$"
  54. }
  55. }
  56. vars.proto = "4"
  57. vars.ibgp_w = "1:1"
  58. vars.ibgp_c = "2:"
  59. vars.ebgp_w = "1:1"
  60. vars.ebgp_c = "2:"
  61. }