summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rwxr-xr-xsrc/conf_mode/interfaces-vxlan.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/conf_mode/interfaces-vxlan.py b/src/conf_mode/interfaces-vxlan.py
index 54446d6de..ba0f9a61a 100755
--- a/src/conf_mode/interfaces-vxlan.py
+++ b/src/conf_mode/interfaces-vxlan.py
@@ -168,6 +168,9 @@ def verify(vxlan):
if not vxlan['source_interface'] in interfaces():
raise ConfigError('VXLAN source interface does not exist')
+ if not (vxlan['group'] or vxlan['remote']):
+ raise ConfigError('Group or remote must be configured')
+
if not vxlan['vni']:
raise ConfigError('Must configure VNI for VXLAN')