summaryrefslogtreecommitdiff
path: root/src/conf_mode/interfaces-tunnel.py
diff options
context:
space:
mode:
authorDmitriyEshenko <dmitriy.eshenko@vyos.io>2020-04-08 13:32:48 +0000
committerDmitriyEshenko <dmitriy.eshenko@vyos.io>2020-04-08 13:32:48 +0000
commit7a0a86809572bff683625cfe1ce150d360d2bac6 (patch)
tree24f92b1ebfac168c7a7c6cf1fc6088694f28a2bf /src/conf_mode/interfaces-tunnel.py
parent34e9e428b51b0a8025d313f314a994439f4ed838 (diff)
downloadvyos-1x-7a0a86809572bff683625cfe1ce150d360d2bac6.tar.gz
vyos-1x-7a0a86809572bff683625cfe1ce150d360d2bac6.zip
tunnel: T2236: Add additional check for type change
Diffstat (limited to 'src/conf_mode/interfaces-tunnel.py')
-rwxr-xr-xsrc/conf_mode/interfaces-tunnel.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/conf_mode/interfaces-tunnel.py b/src/conf_mode/interfaces-tunnel.py
index 646e61c53..15863adc2 100755
--- a/src/conf_mode/interfaces-tunnel.py
+++ b/src/conf_mode/interfaces-tunnel.py
@@ -203,7 +203,8 @@ def get_class (options):
}
kls = dispatch[options['type']]
- if options['type'] == 'gre' and not options['remote']:
+ if options['type'] == 'gre' and not options['remote'] \
+ and not options['key'] and not options['multicast']:
# will use GreTapIf on GreIf deletion but it does not matter
return GRETapIf
elif options['type'] == 'sit' and options['6rd-prefix']: