diff options
author | Daniil Baturin <daniil@vyos.io> | 2020-03-23 04:19:44 +0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-23 04:19:44 +0700 |
commit | 0ae1e074e6a6f6cf6133b6f00127739ad39b2a4d (patch) | |
tree | adf5293108fb36a981fbe30bb7387be0a61f4448 /src/op_mode/vrrp.py | |
parent | e93c92f9e6b2ee29e671a4c1d2750500cc5f63b7 (diff) | |
parent | 79ef46e8af11c6fc57f9465b1b9ac97e775f2c89 (diff) | |
download | vyos-1x-0ae1e074e6a6f6cf6133b6f00127739ad39b2a4d.tar.gz vyos-1x-0ae1e074e6a6f6cf6133b6f00127739ad39b2a4d.zip |
Merge pull request #255 from DmitriyEshenko/crux-vrrp
vrrp: T1884: Add mode-force for run transition-scripts without checkiā¦
Diffstat (limited to 'src/op_mode/vrrp.py')
-rwxr-xr-x | src/op_mode/vrrp.py | 3 |
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) |