summaryrefslogtreecommitdiff
path: root/src/conf_mode
diff options
context:
space:
mode:
authorViacheslav Hletenko <v.gletenko@vyos.io>2025-03-11 20:22:27 +0200
committerGitHub <noreply@github.com>2025-03-11 20:22:27 +0200
commit4d5783a240c977e046dc5638452777a71cc64769 (patch)
tree7c270f9bcf356f020573a46f1aac85844e38cffe /src/conf_mode
parent2b0b323f6ebea2bdf6cb699508cc1b5c074ab2b8 (diff)
parentc9ddcc6a24a3539beda43d7b246d37cac1ed6ede (diff)
downloadvyos-1x-4d5783a240c977e046dc5638452777a71cc64769.tar.gz
vyos-1x-4d5783a240c977e046dc5638452777a71cc64769.zip
Merge pull request #4383 from oniko94/fix/T7219-fix-vxlan-verify
T7219: Add check for remote and group command to verify
Diffstat (limited to 'src/conf_mode')
-rwxr-xr-xsrc/conf_mode/interfaces_vxlan.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/conf_mode/interfaces_vxlan.py b/src/conf_mode/interfaces_vxlan.py
index 68646e8ff..256b65708 100755
--- a/src/conf_mode/interfaces_vxlan.py
+++ b/src/conf_mode/interfaces_vxlan.py
@@ -95,6 +95,8 @@ def verify(vxlan):
if 'group' in vxlan:
if 'source_interface' not in vxlan:
raise ConfigError('Multicast VXLAN requires an underlaying interface')
+ if 'remote' in vxlan:
+ raise ConfigError('Both group and remote cannot be specified')
verify_source_interface(vxlan)
if not any(tmp in ['group', 'remote', 'source_address', 'source_interface'] for tmp in vxlan):