From 7a0a86809572bff683625cfe1ce150d360d2bac6 Mon Sep 17 00:00:00 2001
From: DmitriyEshenko <dmitriy.eshenko@vyos.io>
Date: Wed, 8 Apr 2020 13:32:48 +0000
Subject: tunnel: T2236: Add additional check for type change

---
 src/conf_mode/interfaces-tunnel.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

(limited to 'src')

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']:
-- 
cgit v1.2.3