mirror of
https://github.com/CumulusNetworks/ifupdown2.git
synced 2024-05-06 15:54:50 +00:00
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 <max@sdn.clinic>
This commit is contained in:
@@ -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':
|
||||
|
Reference in New Issue
Block a user