From ca073ba863b52910a2e547137d5874ae96ffbe43 Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Fri, 20 Nov 2020 16:46:18 +0100 Subject: tunnel: T3072: bugfix KeyError for IPv6 GRE verify code --- src/conf_mode/interfaces-tunnel.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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): -- cgit v1.2.3