From 5212c3626a715d9af54cea1e236169fdfcee0a60 Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Thu, 9 Apr 2020 21:25:50 +0200 Subject: Revert "vxlan: T2172: remove group or remote check in verify()" This reverts commit 195e1da6a518ee3a2cbc0e1d454317e3c05e3e6e. --- src/conf_mode/interfaces-vxlan.py | 3 +++ 1 file changed, 3 insertions(+) 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') -- cgit v1.2.3