Commit 265fa850 authored by Sigmund Augdal's avatar Sigmund Augdal

Put path to bfdd-control in a constant

parent ec18c7be
......@@ -12,6 +12,7 @@ APP = "nova_bfd_monitor"
DESCRIPTION = "Check that everything is ok, and signal link down via bfd otherwise"
ADMIN_DOWN_MARKER = "/etc/admin_down"
HAPROXY_CHECK_URL = "http://localhost:1936/haproxy_up"
BFDD_CONTROL = "/usr/local/bin/bfdd-control"
def check_state(interface):
......@@ -37,7 +38,7 @@ def set_state(new_state):
if new_state not in ("up", "down", "admin"):
raise ValueError("Invalid new state: {}".format(new_state))["/usr/local/bin/bfdd-control", "session", "all", "state", new_state])[BFDD_CONTROL, "session", "all", "state", new_state])
def main(logfile, interface):
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment