Commit a0b00254 authored by Sigmund Augdal's avatar Sigmund Augdal

Enable the code that will handle starting/stopping radvd/ucarp based on upstream connectivity

parent 7bd1bf2b
......@@ -21,6 +21,8 @@ def main(logfile, interface):
state = bfd.check_state(interface)
bfd.set_state(state)
logging.info("bfd-check starting, initial state: %s", state)
upstream_state = bfd.get_upstream_state()
bfd.first_upstream_state(upstream_state)
while True:
time.sleep(1)
new_state = bfd.check_state(interface)
......@@ -28,6 +30,9 @@ def main(logfile, interface):
bfd.set_state(new_state)
logging.info("state changed from %s to %s", state, new_state)
state = new_state
new_upstream_state = bfd.get_upstream_state()
bfd.new_upstream_state(new_upstream_state, upstream_state)
upstream_state = new_upstream_state
def daemon_main(args):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment