diff options
author | DmitriyEshenko <dmitriy.eshenko@vyos.io> | 2020-04-08 13:32:48 +0000 |
---|---|---|
committer | DmitriyEshenko <dmitriy.eshenko@vyos.io> | 2020-04-08 13:32:48 +0000 |
commit | 7a0a86809572bff683625cfe1ce150d360d2bac6 (patch) | |
tree | 24f92b1ebfac168c7a7c6cf1fc6088694f28a2bf /src/conf_mode/interfaces-tunnel.py | |
parent | 34e9e428b51b0a8025d313f314a994439f4ed838 (diff) | |
download | vyos-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-x | src/conf_mode/interfaces-tunnel.py | 3 |
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']: |