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-vxlan.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-vxlan.py')
-rwxr-xr-x | src/conf_mode/interfaces-vxlan.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/conf_mode/interfaces-vxlan.py b/src/conf_mode/interfaces-vxlan.py index dabfe4836..c9ef0fe9c 100755 --- a/src/conf_mode/interfaces-vxlan.py +++ b/src/conf_mode/interfaces-vxlan.py @@ -134,8 +134,11 @@ def verify(vxlan): if vxlan['mtu'] < 1500: print('WARNING: RFC7348 recommends VXLAN tunnels preserve a 1500 byte MTU') - if vxlan['group'] and not vxlan['link']: - raise ConfigError('Multicast VXLAN requires an underlaying interface ') + if vxlan['group']: + if not vxlan['link']: + raise ConfigError('Multicast VXLAN requires an underlaying interface ') + if not vxlan['link'] in interfaces(): + raise ConfigError('VXLAN source interface does not exist') if not (vxlan['group'] or vxlan['remote']): raise ConfigError('Group or remote must be configured') |