summaryrefslogtreecommitdiff
path: root/src/conf_mode
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@baturin.org>2018-08-30 21:28:06 +0200
committerDaniil Baturin <daniil@baturin.org>2018-08-30 21:28:06 +0200
commit0264acd21c3c67c998dca3a15b1d4363da12147a (patch)
treedc0c2f3234b4b2cb338a84cac58db73152bbc068 /src/conf_mode
parente30cb007618502fdb25f626ef95b486aa0fd6553 (diff)
downloadvyos-1x-0264acd21c3c67c998dca3a15b1d4363da12147a.tar.gz
vyos-1x-0264acd21c3c67c998dca3a15b1d4363da12147a.zip
T813: fix the check for duplicate VRIDs on the same interface (patch by Watcher7).
Diffstat (limited to 'src/conf_mode')
-rwxr-xr-xsrc/conf_mode/vrrp.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/conf_mode/vrrp.py b/src/conf_mode/vrrp.py
index d21e3ef40..28633f1b4 100755
--- a/src/conf_mode/vrrp.py
+++ b/src/conf_mode/vrrp.py
@@ -273,7 +273,7 @@ def verify(data):
count = len(_groups) - 1
index = 0
while (index < count):
- if _groups[index]["vrid"] == _groups[index + 1]["vrid"]:
+ if (_groups[index]["vrid"] == _groups[index + 1]["vrid"]) and (_groups[index]["interface"] == _groups[index + 1]["interface"]):
raise ConfigError("VRID {0} is used in groups {1} and {2} that both use interface {3}. Groups on the same interface must use different VRIDs".format(
_groups[index]["vrid"], _groups[index]["name"], _groups[index + 1]["name"], _groups[index]["interface"]))
else: