ucentral-event: prune dynamic vlans when they are no longer needed

Fixes: WIFI-14833
Signed-off-by: John Crispin <john@phrozen.org>
This commit is contained in:
John Crispin
2025-07-12 06:49:57 +02:00
parent 867c7fe397
commit a73676abaf

View File

@@ -280,6 +280,21 @@ handlers = {
},
vlan_remove: function(notify) {
for (let wan in wan_ports) {
let msg = {
name: wan,
vlan: [ `${notify.data.vlan_id}:t` ]
};
ubus.call('network.interface.up_none', 'remove_device', msg);
}
let msg = {
name: notify.data.ifname,
'link-ext': true,
vlan: [ `${notify.data.vlan_id}:u` ]
};
ubus.call('network.interface.up_none', 'remove_device', msg);
if (ratelimit) {
let msg = {
device: notify.data.ifname,