summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-12-20 14:09:18 +0100
committerChristian Poessinger <christian@poessinger.com>2020-12-20 14:09:18 +0100
commit2059f35021191b10d9349f6a531138fc5810f409 (patch)
treeacd014993d818382202339cf9dc2631d6ade804f
parentd332748c63304643c23d665c558021b49159c4a5 (diff)
downloadvyos-1x-2059f35021191b10d9349f6a531138fc5810f409.tar.gz
vyos-1x-2059f35021191b10d9349f6a531138fc5810f409.zip
wifi: T2875: support bridging of wireless AP interface
-rw-r--r--python/vyos/ifconfig/bridge.py12
1 files changed, 8 insertions, 4 deletions
diff --git a/python/vyos/ifconfig/bridge.py b/python/vyos/ifconfig/bridge.py
index 9bd4a22e7..76520f2ba 100644
--- a/python/vyos/ifconfig/bridge.py
+++ b/python/vyos/ifconfig/bridge.py
@@ -46,7 +46,7 @@ class BridgeIf(Interface):
'vlan': True,
},
}
-
+
_sysfs_get = {
**Interface._sysfs_get,**{
'vlan_filter': {
@@ -102,12 +102,12 @@ class BridgeIf(Interface):
'shellcmd': 'ip link set dev {value} nomaster',
},
}}
-
+
def get_vlan_filter(self):
"""
Get the status of the bridge VLAN filter
"""
-
+
return self.get_interface('vlan_filter')
@@ -209,6 +209,10 @@ class BridgeIf(Interface):
>>> BridgeIf('br0').add_port('eth0')
>>> BridgeIf('br0').add_port('eth1')
"""
+ # Bridge port handling of wireless interfaces is done by hostapd.
+ if 'wlan' in interface:
+ return
+
try:
return self.set_interface('add_port', interface)
except:
@@ -284,7 +288,7 @@ class BridgeIf(Interface):
bridge_vlan_ids.remove(1)
for vlan in bridge_vlan_ids:
vlan_del.add(str(vlan))
-
+
for interface, interface_config in tmp.items():
# if interface does yet not exist bail out early and
# add it later