mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-30 07:59:35 +00:00
Add MUD delete button
This commit is contained in:
parent
d9a44d615a
commit
1029440083
2 changed files with 22 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue