diff options
author | Christian Poessinger <christian@poessinger.com> | 2020-06-30 16:52:00 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2020-07-01 19:06:56 +0200 |
commit | 65fa21f5e79114fa861d99eae154baad35ce2f11 (patch) | |
tree | 9ba87d9e896323d6d05be3a09219b8701a922e6e /python | |
parent | f4892241d8248d0e22f971fdc3acd897c7035be9 (diff) | |
download | vyos-1x-65fa21f5e79114fa861d99eae154baad35ce2f11.tar.gz vyos-1x-65fa21f5e79114fa861d99eae154baad35ce2f11.zip |
ifconfig: T2653: move pppoe interface to get_config_dict()
Diffstat (limited to 'python')
-rw-r--r-- | python/vyos/configverify.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/python/vyos/configverify.py b/python/vyos/configverify.py index e2fffeca7..528428e03 100644 --- a/python/vyos/configverify.py +++ b/python/vyos/configverify.py @@ -32,7 +32,6 @@ def verify_bridge_vrf(config): if 'vrf' in config.keys(): if config['vrf'] not in interfaces(): raise ConfigError('VRF "{vrf}" does not exist'.format(**config)) - if 'is_bridge_member' in config.keys(): raise ConfigError( 'Interface "{ifname}" cannot be both a member of VRF "{vrf}" ' @@ -69,6 +68,10 @@ def verify_source_interface(config): perform recurring validation of the existence of a source-interface required by e.g. peth/MACvlan, MACsec ... """ + from netifaces import interfaces if not 'source_interface' in config.keys(): raise ConfigError('Physical source-interface required for ' 'interface "{ifname}"'.format(**config)) + if not config['source_interface'] in interfaces(): + raise ConfigError(f'Source interface {source_interface} does not ' + f'exist'.format(**config)) |