mirror of
https://github.com/Telecominfraproject/wlan-ap.git
synced 2025-10-30 18:07:52 +00:00
ratelimit: notify ratelimit on vlan remove
Fixes WIFI-13560 Signed-off-by: Arif Alam <arif.alam@netexperience.com>
This commit is contained in:
@@ -224,6 +224,15 @@ handlers = {
|
|||||||
ubus.call('network.interface.up_none', 'add_device', msg);
|
ubus.call('network.interface.up_none', 'add_device', msg);
|
||||||
ubus.call('dhcprelay', 'check_devices');
|
ubus.call('dhcprelay', 'check_devices');
|
||||||
},
|
},
|
||||||
|
|
||||||
|
vlan_remove: function(notify) {
|
||||||
|
if (ratelimit) {
|
||||||
|
let msg = {
|
||||||
|
device: notify.data.ifname,
|
||||||
|
};
|
||||||
|
ubus.call('ratelimit', 'device_delete', msg);
|
||||||
|
}
|
||||||
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user