diff options
author | Christian Poessinger <christian@poessinger.com> | 2020-03-05 17:23:26 +0100 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2020-03-05 17:23:26 +0100 |
commit | e8fc4cb5240fb637d25ea03e08df6c0267d052cf (patch) | |
tree | c752bab404e6cb82ddcceb0d191a93191e9255fb /src/conf_mode/interfaces-pseudo-ethernet.py | |
parent | 17a9c0f1a0b73c192a5d64372595ddcb4ae19d71 (diff) | |
parent | 2242f7d8abcafcd1c1f33ad6b59e2b22979adb69 (diff) | |
download | vyos-1x-e8fc4cb5240fb637d25ea03e08df6c0267d052cf.tar.gz vyos-1x-e8fc4cb5240fb637d25ea03e08df6c0267d052cf.zip |
Merge branch 'ipv6-pppoe' of github.com:c-po/vyos-1x into current
* 'ipv6-pppoe' of github.com:c-po/vyos-1x:
pppoe: T1493: support IPv6 address negotiation which is required for DHCPv6-PD
macvlan: T1635: ensure 'link' interface really exists
vxlan: T1636: ensure 'link' interface really exists
pppoe: T1318: IPv6 support
Diffstat (limited to 'src/conf_mode/interfaces-pseudo-ethernet.py')
-rwxr-xr-x | src/conf_mode/interfaces-pseudo-ethernet.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/conf_mode/interfaces-pseudo-ethernet.py b/src/conf_mode/interfaces-pseudo-ethernet.py index 3d36da226..09d580b28 100755 --- a/src/conf_mode/interfaces-pseudo-ethernet.py +++ b/src/conf_mode/interfaces-pseudo-ethernet.py @@ -196,6 +196,9 @@ def verify(peth): if not peth['link']: raise ConfigError('Link device must be set for virtual ethernet {}'.format(peth['intf'])) + if not peth['link'] in interfaces(): + raise ConfigError('Pseudo-ethernet source interface does not exist') + return None def generate(peth): |