Add MUD delete button

This commit is contained in:
emanuele-f 2019-09-05 18:52:26 +02:00
parent d9a44d615a
commit 1029440083
2 changed files with 22 additions and 1 deletions

View file

@ -395,4 +395,15 @@ end
-- ###########################################
function mud_utils.deleteHostMUD(ifid, host_key)
local pattern = string.format("ntopng.mud.ifid_%d.*._%s_*", ifid, host_key)
local keys = ntop.getKeysCache(pattern) or {}
for key in pairs(keys) do
ntop.delCache(key)
end
end
-- ###########################################
return mud_utils