summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Mangin <thomas.mangin@exa.net.uk>2020-04-21 21:43:02 +0100
committerThomas Mangin <thomas.mangin@exa.net.uk>2020-04-21 21:43:02 +0100
commita0be6df0aa6fbbb988f264eb4981d00d60e19476 (patch)
tree942ef70e5f11929fd47fa87de7a686da072b64de
parent0a22262769263a169dd8beb8cc58bdb17858735a (diff)
downloadvyos-1x-a0be6df0aa6fbbb988f264eb4981d00d60e19476.tar.gz
vyos-1x-a0be6df0aa6fbbb988f264eb4981d00d60e19476.zip
vrrp: T2331: fix show vrrp
-rw-r--r--python/vyos/ifconfig/vrrp.py2
-rwxr-xr-xsrc/op_mode/vrrp.py1
2 files changed, 1 insertions, 2 deletions
diff --git a/python/vyos/ifconfig/vrrp.py b/python/vyos/ifconfig/vrrp.py
index 29b10dd9e..a872725b2 100644
--- a/python/vyos/ifconfig/vrrp.py
+++ b/python/vyos/ifconfig/vrrp.py
@@ -109,7 +109,7 @@ class VRRP(object):
return []
disabled = []
- config = json.loads(util.readfile(cls.location['vyos']))
+ config = json.loads(util.read_file(cls.location['vyos']))
# add disabled groups to the list
for group in config['vrrp_groups']:
diff --git a/src/op_mode/vrrp.py b/src/op_mode/vrrp.py
index 923cfa4d4..e024d7f63 100755
--- a/src/op_mode/vrrp.py
+++ b/src/op_mode/vrrp.py
@@ -21,7 +21,6 @@ import argparse
import json
import tabulate
-import vyos.keepalived
import vyos.util
from vyos.ifconfig.vrrp import VRRP