diff --git a/feeds/ucentral/ucentral-event/files/ucentral-event b/feeds/ucentral/ucentral-event/files/ucentral-event index b42a02ab3..dd82ba432 100755 --- a/feeds/ucentral/ucentral-event/files/ucentral-event +++ b/feeds/ucentral/ucentral-event/files/ucentral-event @@ -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,