summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authoroniko94 <onikolaiev94@outlook.com>2025-03-07 14:31:10 +0200
committeroniko94 <onikolaiev94@outlook.com>2025-03-11 17:22:39 +0200
commitc9ddcc6a24a3539beda43d7b246d37cac1ed6ede (patch)
tree7958c4aa61477f793c14e9200d82f88b1e382870 /src
parentb70e3686981e08e69938d6879575ca3f0f9adfbe (diff)
downloadvyos-1x-c9ddcc6a24a3539beda43d7b246d37cac1ed6ede.tar.gz
vyos-1x-c9ddcc6a24a3539beda43d7b246d37cac1ed6ede.zip
T7219: Add check for remote and group command to verify
Diffstat (limited to 'src')
-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):