From c9ddcc6a24a3539beda43d7b246d37cac1ed6ede Mon Sep 17 00:00:00 2001 From: oniko94 Date: Fri, 7 Mar 2025 14:31:10 +0200 Subject: T7219: Add check for remote and group command to verify --- src/conf_mode/interfaces_vxlan.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') 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): -- cgit v1.2.3