1
0
mirror of https://github.com/CumulusNetworks/ifupdown2.git synced 2024-05-06 15:54:50 +00:00

Fix gretunnels

This commit is contained in:
Sven Auhagen
2018-10-29 06:55:25 +01:00
committed by Julien Fortin
parent 3dcd868f84
commit 535b0c8d4b

View File

@ -1266,8 +1266,13 @@ class LinkUtils(utilsBase):
if '6' in mode:
cmd = ' -6 '
cmd += 'tunnel add'
cmd += ' %s mode %s' %(tunnelname, mode)
if mode == 'gretap':
cmd += 'link add'
cmd += ' %s type %s' %(tunnelname, mode)
else:
cmd += 'tunnel add'
cmd += ' %s mode %s' %(tunnelname, mode)
if attrs:
for k, v in attrs.iteritems():
cmd += ' %s' %k