summaryrefslogtreecommitdiff
path: root/src/conf_mode/interfaces-pseudo-ethernet.py
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-03-05 17:23:26 +0100
committerChristian Poessinger <christian@poessinger.com>2020-03-05 17:23:26 +0100
commite8fc4cb5240fb637d25ea03e08df6c0267d052cf (patch)
treec752bab404e6cb82ddcceb0d191a93191e9255fb /src/conf_mode/interfaces-pseudo-ethernet.py
parent17a9c0f1a0b73c192a5d64372595ddcb4ae19d71 (diff)
parent2242f7d8abcafcd1c1f33ad6b59e2b22979adb69 (diff)
downloadvyos-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-xsrc/conf_mode/interfaces-pseudo-ethernet.py3
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):