summaryrefslogtreecommitdiff
path: root/src/op_mode
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-01-15 14:12:20 +0800
committerGitHub <noreply@github.com>2020-01-15 14:12:20 +0800
commit065a2d415a7d6faa7201e0d21ea73357100304e7 (patch)
treed73a378b2292f53465ae4021bb012ee31b7fcde8 /src/op_mode
parentf7c3e427c19a0137f76a3291c888a21239b3a0db (diff)
parent187d34b82f80c9c251c81cf9b96aa8d52e9f21e2 (diff)
downloadvyos-1x-065a2d415a7d6faa7201e0d21ea73357100304e7.tar.gz
vyos-1x-065a2d415a7d6faa7201e0d21ea73357100304e7.zip
Merge pull request #207 from DmitriyEshenko/vrrp-nb
vrrp: T1884: Keep transition-script native behaviour and implement tr…
Diffstat (limited to 'src/op_mode')
-rwxr-xr-xsrc/op_mode/vrrp.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/op_mode/vrrp.py b/src/op_mode/vrrp.py
index 54e1bfb57..8d1369823 100755
--- a/src/op_mode/vrrp.py
+++ b/src/op_mode/vrrp.py
@@ -32,6 +32,7 @@ def print_summary():
# Replace with inotify or similar if it proves problematic
time.sleep(0.2)
json_data = vyos.keepalived.get_json_data()
+ vyos.keepalived.remove_vrrp_data("json")
except:
print("VRRP information is not available")
sys.exit(1)
@@ -63,6 +64,7 @@ def print_statistics():
time.sleep(0.2)
output = vyos.keepalived.get_statistics()
print(output)
+ vyos.keepalived.remove_vrrp_data("stats")
except:
print("VRRP statistics are not available")
sys.exit(1)
@@ -73,6 +75,7 @@ def print_state_data():
time.sleep(0.2)
output = vyos.keepalived.get_state_data()
print(output)
+ vyos.keepalived.remove_vrrp_data("state")
except:
print("VRRP information is not available")
sys.exit(1)