From cc3906e55004d1efb179a0f89329849cad9c4b79 Mon Sep 17 00:00:00 2001 From: Arif Alam Date: Tue, 9 Apr 2024 21:24:41 -0400 Subject: [PATCH] ratelimit: notify ratelimit on vlan remove Fixes WIFI-13560 Signed-off-by: Arif Alam --- feeds/ucentral/ucentral-event/files/ucentral-event | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/feeds/ucentral/ucentral-event/files/ucentral-event b/feeds/ucentral/ucentral-event/files/ucentral-event index faee9207b..cc556cbf8 100755 --- a/feeds/ucentral/ucentral-event/files/ucentral-event +++ b/feeds/ucentral/ucentral-event/files/ucentral-event @@ -224,6 +224,15 @@ handlers = { ubus.call('network.interface.up_none', 'add_device', msg); ubus.call('dhcprelay', 'check_devices'); }, + + vlan_remove: function(notify) { + if (ratelimit) { + let msg = { + device: notify.data.ifname, + }; + ubus.call('ratelimit', 'device_delete', msg); + } + }, };