summaryrefslogtreecommitdiff
path: root/src/conf_mode/interfaces-vxlan.py
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-04-09 21:25:50 +0200
committerChristian Poessinger <christian@poessinger.com>2020-04-09 21:25:50 +0200
commit5212c3626a715d9af54cea1e236169fdfcee0a60 (patch)
treebb1b24fd20f29031558ca2c3e11a13097571b758 /src/conf_mode/interfaces-vxlan.py
parent45776b41b941f6ea77cc2c4409e16ec0cd3bd213 (diff)
downloadvyos-1x-5212c3626a715d9af54cea1e236169fdfcee0a60.tar.gz
vyos-1x-5212c3626a715d9af54cea1e236169fdfcee0a60.zip
Revert "vxlan: T2172: remove group or remote check in verify()"
This reverts commit 195e1da6a518ee3a2cbc0e1d454317e3c05e3e6e.
Diffstat (limited to 'src/conf_mode/interfaces-vxlan.py')
-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')