From fdb5abcf7bfd36b00263c39bc5deb918e3943975 Mon Sep 17 00:00:00 2001 From: Maximilian Wilhelm Date: Mon, 29 Oct 2018 20:35:30 +0100 Subject: [PATCH] addons: tunnel: Make sure tunnel modes are read correctly Latest additions added a bunch of new tunnel modes but didn't add support to read in these modes which breaks 'ifquery' as it falsely marks the mode as 'fail'. Signed-off-by: Maximilian Wilhelm --- ifupdownaddons/iproute2.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ifupdownaddons/iproute2.py b/ifupdownaddons/iproute2.py index 622a76c..e9476a9 100644 --- a/ifupdownaddons/iproute2.py +++ b/ifupdownaddons/iproute2.py @@ -119,6 +119,8 @@ class iproute2(utilsBase): tunattrs['ttl'] = citems[j + 1] elif citems[j] == 'dev': tunattrs['physdev'] = citems[j + 1] + elif citems[j] in ['vti', 'vti6', 'ip6gre', 'ipip6', 'ip6ip6']: + tunattrs['mode'] = citems[j] linkattrs['linkinfo'] = tunattrs break elif citems[i] == 'link/ppp':