summaryrefslogtreecommitdiff
path: root/python/vyos/ifconfig/bridge.py
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2022-02-16 22:16:01 +0100
committerChristian Poessinger <christian@poessinger.com>2022-02-16 22:18:04 +0100
commit1ceaed55a629c92cf42baccdef4106e8d0e4914e (patch)
tree30c304a7dbc00fd86cf603adf69f4bdf52d67047 /python/vyos/ifconfig/bridge.py
parent0f788abea73fa1e6ea5a41ef3c23ee29182a942a (diff)
downloadvyos-1x-1ceaed55a629c92cf42baccdef4106e8d0e4914e.tar.gz
vyos-1x-1ceaed55a629c92cf42baccdef4106e8d0e4914e.zip
wireless: T4240: bugfix interface bridging
VLAN isolation can not be "set" when interface is of type wifi.
Diffstat (limited to 'python/vyos/ifconfig/bridge.py')
-rw-r--r--python/vyos/ifconfig/bridge.py12
1 files changed, 7 insertions, 5 deletions
diff --git a/python/vyos/ifconfig/bridge.py b/python/vyos/ifconfig/bridge.py
index 27073b266..ffd9c590f 100644
--- a/python/vyos/ifconfig/bridge.py
+++ b/python/vyos/ifconfig/bridge.py
@@ -298,7 +298,6 @@ class BridgeIf(Interface):
tmp = dict_search('member.interface', config)
if tmp:
-
for interface, interface_config in tmp.items():
# if interface does yet not exist bail out early and
# add it later
@@ -316,10 +315,13 @@ class BridgeIf(Interface):
# enslave interface port to bridge
self.add_port(interface)
- # always set private-vlan/port isolation
- tmp = dict_search('isolated', interface_config)
- value = 'on' if (tmp != None) else 'off'
- lower.set_port_isolation(value)
+ if not interface.startswith('wlan'):
+ # always set private-vlan/port isolation - this can not be
+ # done when lower link is a wifi link, as it will trigger:
+ # RTNETLINK answers: Operation not supported
+ tmp = dict_search('isolated', interface_config)
+ value = 'on' if (tmp != None) else 'off'
+ lower.set_port_isolation(value)
# set bridge port path cost
if 'cost' in interface_config: