summaryrefslogtreecommitdiff
path: root/src/conf_mode/vrrp.py
diff options
context:
space:
mode:
authorhagbard <vysodev@derith.de>2018-08-11 16:09:18 -0700
committerhagbard <vysodev@derith.de>2018-08-11 16:09:18 -0700
commita8312b64a2baf0d5c604a0850f7409b0505b36dc (patch)
tree6817341127bf7ee4c2183b59dcb3148f4eb47d7e /src/conf_mode/vrrp.py
parent1472afe76f525a38f8d3da98fa933f7b49ae10f0 (diff)
parentf1720d121911ab14f4925dd9c1075e9d05c8bf79 (diff)
downloadvyos-1x-a8312b64a2baf0d5c604a0850f7409b0505b36dc.tar.gz
vyos-1x-a8312b64a2baf0d5c604a0850f7409b0505b36dc.zip
Merge remote-tracking branch 'upstream/current' into current
Diffstat (limited to 'src/conf_mode/vrrp.py')
-rwxr-xr-xsrc/conf_mode/vrrp.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/conf_mode/vrrp.py b/src/conf_mode/vrrp.py
index 155b71aa8..0f6e531e8 100755
--- a/src/conf_mode/vrrp.py
+++ b/src/conf_mode/vrrp.py
@@ -255,7 +255,7 @@ def verify(data):
raise ConfigError("VRRP group {0} uses IPv4 but its hello-source-address is IPv6".format(group["name"]))
if group["peer_address"]:
pa = ipaddress.ip_address(group["peer_address"])
- if isinstance(hsa, ipaddress.IPv6Address):
+ if isinstance(pa, ipaddress.IPv6Address):
raise ConfigError("VRRP group {0} uses IPv4 but its peer-address is IPv6".format(group["name"]))
if vaddrs6:
@@ -265,7 +265,7 @@ def verify(data):
raise ConfigError("VRRP group {0} uses IPv6 but its hello-source-address is IPv4".format(group["name"]))
if group["peer_address"]:
pa = ipaddress.ip_address(group["peer_address"])
- if isinstance(hsa, ipaddress.IPv4Address):
+ if isinstance(pa, ipaddress.IPv4Address):
raise ConfigError("VRRP group {0} uses IPv6 but its peer-address is IPv4".format(group["name"]))
# Disallow same VRID on multiple interfaces