diff options
author | Christian Poessinger <christian@poessinger.com> | 2020-11-20 16:46:18 +0100 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2020-11-20 16:46:18 +0100 |
commit | ca073ba863b52910a2e547137d5874ae96ffbe43 (patch) | |
tree | 236c275ca9609ae5bfba6daa4f022ca95ce06b1d /src | |
parent | 1a199ab4a2d3ebe5f2cb772181a9323a0e10e963 (diff) | |
download | vyos-1x-ca073ba863b52910a2e547137d5874ae96ffbe43.tar.gz vyos-1x-ca073ba863b52910a2e547137d5874ae96ffbe43.zip |
tunnel: T3072: bugfix KeyError for IPv6 GRE verify code
Diffstat (limited to 'src')
-rwxr-xr-x | src/conf_mode/interfaces-tunnel.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/conf_mode/interfaces-tunnel.py b/src/conf_mode/interfaces-tunnel.py index bf643f3d1..1a7e9a96d 100755 --- a/src/conf_mode/interfaces-tunnel.py +++ b/src/conf_mode/interfaces-tunnel.py @@ -119,7 +119,7 @@ def verify(tunnel): raise ConfigError('Option source-interface can not be used with ' \ 'encapsulation "sit" or "gre-bridge"') elif tunnel['encapsulation'] == 'gre': - if is_ipv6(tunnel['local_ip']): + if 'local_ip' in tunnel and is_ipv6(tunnel['local_ip']): raise ConfigError('Can not use local IPv6 address is for mGRE tunnels') def generate(tunnel): |