diff options
| author | Thomas Mangin <thomas.mangin@exa.net.uk> | 2020-04-12 12:29:31 +0100 | 
|---|---|---|
| committer | Thomas Mangin <thomas.mangin@exa.net.uk> | 2020-04-12 12:31:56 +0100 | 
| commit | 35db20b3b27ab8cd223a5546f31c253dc79c04f0 (patch) | |
| tree | 72b9072501ecac623f007f00179c9da3b1ed6d80 | |
| parent | 3411d1b3864390ba441327eb35b1fa46869c8263 (diff) | |
| download | vyos-1x-35db20b3b27ab8cd223a5546f31c253dc79c04f0.tar.gz vyos-1x-35db20b3b27ab8cd223a5546f31c253dc79c04f0.zip | |
tunnel: T2236: missed mtu command on all tunnels
| -rw-r--r-- | python/vyos/ifconfig/tunnel.py | 14 | 
1 files changed, 7 insertions, 7 deletions
| diff --git a/python/vyos/ifconfig/tunnel.py b/python/vyos/ifconfig/tunnel.py index 05060669a..009a53a82 100644 --- a/python/vyos/ifconfig/tunnel.py +++ b/python/vyos/ifconfig/tunnel.py @@ -143,7 +143,7 @@ class GREIf(_Tunnel):      options = ['local', 'remote', 'ttl', 'tos', 'key']      updates = ['local', 'remote', 'ttl', 'tos', -               'multicast', 'allmulticast'] +               'mtu', 'multicast', 'allmulticast']      create = 'ip tunnel add {ifname} mode {type}'      change = 'ip tunnel cha {ifname}' @@ -167,7 +167,7 @@ class GRETapIf(_Tunnel):      required = ['local', ]      options = ['local', 'remote', ] -    updates = [] +    updates = ['mtu', ]      create = 'ip link add {ifname} type {type}'      change = '' @@ -193,7 +193,7 @@ class IP6GREIf(_Tunnel):                 'hoplimit', 'tclass', 'flowlabel']      updates = ['local', 'remote', 'encaplimit',                 'hoplimit', 'tclass', 'flowlabel', -               'multicast', 'allmulticast'] +               'mtu', 'multicast', 'allmulticast']      create = 'ip tunnel add {ifname} mode {type}'      change = 'ip tunnel cha {ifname} mode {type}' @@ -227,7 +227,7 @@ class IPIPIf(_Tunnel):      options = ['local', 'remote', 'ttl', 'tos', 'key']      updates = ['local', 'remote', 'ttl', 'tos', -               'multicast', 'allmulticast'] +               'mtu', 'multicast', 'allmulticast']      create = 'ip tunnel add {ifname} mode {type}'      change = 'ip tunnel cha {ifname}' @@ -252,7 +252,7 @@ class IPIP6If(_Tunnel):                 'hoplimit', 'tclass', 'flowlabel']      updates = ['local', 'remote', 'encaplimit',                 'hoplimit', 'tclass', 'flowlabel', -               'multicast', 'allmulticast'] +               'mtu', 'multicast', 'allmulticast']      create = 'ip -6 tunnel add {ifname} mode {type}'      change = 'ip -6 tunnel cha {ifname}' @@ -288,7 +288,7 @@ class SitIf(_Tunnel):      options = ['local', 'remote', 'ttl', 'tos', 'key']      updates = ['local', 'remote', 'ttl', 'tos', -               'multicast', 'allmulticast'] +               'mtu', 'multicast', 'allmulticast']      create = 'ip tunnel add {ifname} mode {type}'      change = 'ip tunnel cha {ifname}' @@ -309,7 +309,7 @@ class Sit6RDIf(SitIf):      # TODO: check if key can really be used with 6RD      options = ['remote', 'ttl', 'tos', 'key', '6rd-prefix', '6rd-relay-prefix']      updates = ['remote', 'ttl', 'tos', -               'multicast', 'allmulticast'] +               'mtu', 'multicast', 'allmulticast']      def _create(self):          # do not call _Tunnel.create, building fully here | 
