mirror of
				https://github.com/Telecominfraproject/wlan-ap.git
				synced 2025-10-30 18:07:52 +00:00 
			
		
		
		
	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:
		| @@ -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, | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 John Crispin
					John Crispin