diff options
author | Thomas Mangin <thomas.mangin@exa.net.uk> | 2020-04-12 22:41:39 +0100 |
---|---|---|
committer | Thomas Mangin <thomas.mangin@exa.net.uk> | 2020-04-12 22:41:39 +0100 |
commit | 7e7d2799784d80563d5b07fdf6f483c716713bd8 (patch) | |
tree | b9fe6efc6cfd99bdd6cc8ffdca88da15fff017e3 /src | |
parent | 468a109e058b8b5e2d5b4db11ecab23d73c802fb (diff) | |
download | vyos-1x-7e7d2799784d80563d5b07fdf6f483c716713bd8.tar.gz vyos-1x-7e7d2799784d80563d5b07fdf6f483c716713bd8.zip |
tunnel: T2028: fix issue when booting without gre remote
Diffstat (limited to 'src')
-rwxr-xr-x | src/conf_mode/interfaces-tunnel.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/conf_mode/interfaces-tunnel.py b/src/conf_mode/interfaces-tunnel.py index 19538da72..c51048aeb 100755 --- a/src/conf_mode/interfaces-tunnel.py +++ b/src/conf_mode/interfaces-tunnel.py @@ -584,11 +584,17 @@ def apply(conf): if changes['section'] in 'create' and option in tunnel.options: # it was setup at creation continue + if not options[option]: + # remote can be set to '' and it would generate an invalide command + continue tunnel.set_interface(option, options[option]) # set other interface properties for option in ('alias', 'mtu', 'link_detect', 'multicast', 'allmulticast', 'vrf', 'ipv6_autoconf', 'ipv6_forwarding', 'ipv6_dad_transmits'): + if not options[option]: + # should never happen but better safe + continue tunnel.set_interface(option, options[option]) # Configure interface address(es) |