From: Sven Auhagen Date: Mon, 29 Oct 2018 05:55:25 +0000 (+0100) Subject: Fix gretunnels X-Git-Tag: 1.2.2-1~35 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=535b0c8d4bf382de14a1fe49330b44cbe8045687;p=mirror_ifupdown2.git Fix gretunnels --- diff --git a/ifupdown2/ifupdownaddons/LinkUtils.py b/ifupdown2/ifupdownaddons/LinkUtils.py index ab1dd6e..ad6871f 100644 --- a/ifupdown2/ifupdownaddons/LinkUtils.py +++ b/ifupdown2/ifupdownaddons/LinkUtils.py @@ -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