summaryrefslogtreecommitdiff
path: root/src/conf_mode/interfaces-tunnel.py
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-11-20 16:46:18 +0100
committerChristian Poessinger <christian@poessinger.com>2020-11-20 16:46:18 +0100
commitca073ba863b52910a2e547137d5874ae96ffbe43 (patch)
tree236c275ca9609ae5bfba6daa4f022ca95ce06b1d /src/conf_mode/interfaces-tunnel.py
parent1a199ab4a2d3ebe5f2cb772181a9323a0e10e963 (diff)
downloadvyos-1x-ca073ba863b52910a2e547137d5874ae96ffbe43.tar.gz
vyos-1x-ca073ba863b52910a2e547137d5874ae96ffbe43.zip
tunnel: T3072: bugfix KeyError for IPv6 GRE verify code
Diffstat (limited to 'src/conf_mode/interfaces-tunnel.py')
-rwxr-xr-xsrc/conf_mode/interfaces-tunnel.py2
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):