diff options
author | Thomas Mangin <thomas.mangin@exa.net.uk> | 2020-04-21 22:39:16 +0100 |
---|---|---|
committer | Thomas Mangin <thomas.mangin@exa.net.uk> | 2020-04-21 22:54:13 +0100 |
commit | d7a67220732ba8dc3d6c3f8a8823685d6e9ed60a (patch) | |
tree | 8f75d224418c2bfaee6e453f01c6dd8442da00b7 /python/vyos/ifconfig/tunnel.py | |
parent | 0a22262769263a169dd8beb8cc58bdb17858735a (diff) | |
download | vyos-1x-d7a67220732ba8dc3d6c3f8a8823685d6e9ed60a.tar.gz vyos-1x-d7a67220732ba8dc3d6c3f8a8823685d6e9ed60a.zip |
tunnel: T2354: do not allow display as bridge option
Diffstat (limited to 'python/vyos/ifconfig/tunnel.py')
-rw-r--r-- | python/vyos/ifconfig/tunnel.py | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/python/vyos/ifconfig/tunnel.py b/python/vyos/ifconfig/tunnel.py index 690b61366..85c22b5b4 100644 --- a/python/vyos/ifconfig/tunnel.py +++ b/python/vyos/ifconfig/tunnel.py @@ -43,7 +43,7 @@ class _Tunnel(Interface): **{ 'section': 'tunnel', 'prefixes': ['tun',], - 'bridgeable': True, + 'bridgeable': False, }, } @@ -135,6 +135,13 @@ class GREIf(_Tunnel): https://git.kernel.org/pub/scm/network/iproute2/iproute2.git/tree/ip/link_gre.c """ + definition = { + **_Tunnel.definition, + **{ + 'bridgeable': True, + }, + } + ip = [IP4, IP6] tunnel = IP4 @@ -160,6 +167,13 @@ class GRETapIf(_Tunnel): # no multicast, ttl or tos for gretap + definition = { + **_Tunnel.definition, + **{ + 'bridgeable': True, + }, + } + ip = [IP4, ] tunnel = IP4 |