summaryrefslogtreecommitdiff
path: root/python/vyos/configverify.py
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@vyos.io>2022-09-15 15:22:05 +0100
committerGitHub <noreply@github.com>2022-09-15 15:22:05 +0100
commit435016fdb353b79577c40baa23af8e01fcadd098 (patch)
tree12b9acdc00ba63041b96d54bdeb339c3264959dd /python/vyos/configverify.py
parente57146723fd791d71ac9659f9247a8827c151c97 (diff)
parent87894a2fa32933400a930783edcce74a8b4792a4 (diff)
downloadvyos-1x-435016fdb353b79577c40baa23af8e01fcadd098.tar.gz
vyos-1x-435016fdb353b79577c40baa23af8e01fcadd098.zip
Merge pull request #1519 from c-po/t4630-equuleus-peth-macsec
T4630: disallow same source-interface for macsec and pseudo-ethernet
Diffstat (limited to 'python/vyos/configverify.py')
-rw-r--r--python/vyos/configverify.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/python/vyos/configverify.py b/python/vyos/configverify.py
index d4b532d22..a35ea0b74 100644
--- a/python/vyos/configverify.py
+++ b/python/vyos/configverify.py
@@ -248,6 +248,12 @@ def verify_source_interface(config):
raise ConfigError(f'Invalid source-interface "{src_ifname}". Interface '
f'is already a member of bond "{bond_name}"!')
+ if 'is_source_interface' in config:
+ tmp = config['is_source_interface']
+ src_ifname = config['source_interface']
+ raise ConfigError(f'Can not use source-interface "{src_ifname}", it already ' \
+ f'belongs to interface "{tmp}"!')
+
def verify_dhcpv6(config):
"""
Common helper function used by interface implementations to perform