ucentral-state: with swconfig dvlan/local break-out mode

Fixes: WIFI-13316
Signed-off-by: John Crispin <john@phrozen.org>
This commit is contained in:
John Crispin
2024-01-23 16:21:39 +01:00
parent a14df28bd6
commit d5ffdffd8c

View File

@@ -126,7 +126,8 @@ handlers = {
vlan: [ `${notify.data.vlan_id}:u` ]
};
ubus.call('network.interface.up_none', 'add_device', msg);
if (`${notify.data.vlan_id}` in config.config.swconfig_vlans)
return;
msg = {
name: 'eth0.' + notify.data.vlan_id,
vlan: [ `${notify.data.vlan_id}:u` ]