summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJernej Jakob <jernej.jakob@gmail.com>2020-05-01 18:16:47 +0200
committerJernej Jakob <jernej.jakob@gmail.com>2020-05-04 22:59:39 +0200
commit5a0101bdd4b117001e0b0f77acae09b96865c815 (patch)
tree110de2e2019643943075fc6fb2851a31be7de8a4 /src
parentad0448e6e213dd964d44fac450c4a428d035f635 (diff)
downloadvyos-1x-5a0101bdd4b117001e0b0f77acae09b96865c815.tar.gz
vyos-1x-5a0101bdd4b117001e0b0f77acae09b96865c815.zip
geneve: T2241: make address and bridge membership mutually exclusive
Bridge members should not have any addresses assigned.
Diffstat (limited to 'src')
-rwxr-xr-xsrc/conf_mode/interfaces-geneve.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/conf_mode/interfaces-geneve.py b/src/conf_mode/interfaces-geneve.py
index 98f0672c5..ab1bd7d7b 100755
--- a/src/conf_mode/interfaces-geneve.py
+++ b/src/conf_mode/interfaces-geneve.py
@@ -104,6 +104,11 @@ def verify(geneve):
return None
+ if geneve['is_bridge_member'] and geneve['address']:
+ raise ConfigError((
+ f'Cannot assign address to interface "{geneve["intf"]}" '
+ f'as it is a member of bridge "{geneve["is_bridge_member"]}"!'))
+
if not geneve['remote']:
raise ConfigError('GENEVE remote must be configured')