mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 23:49:33 +00:00
Implements unbind of configsets across all pools instances
This commit is contained in:
parent
96484c01ab
commit
a6ffb62bf2
3 changed files with 93 additions and 1 deletions
|
|
@ -4,6 +4,7 @@
|
|||
|
||||
local dirs = ntop.getDirs()
|
||||
package.path = dirs.installdir .. "/scripts/lua/modules/?.lua;" .. package.path
|
||||
package.path = dirs.installdir .. "/scripts/lua/modules/pools/?.lua;" .. package.path
|
||||
|
||||
require "lua_utils"
|
||||
local json = require("dkjson")
|
||||
|
|
@ -40,7 +41,11 @@ if(action == "delete") then
|
|||
result.success = success
|
||||
|
||||
if not success then
|
||||
result.error = err
|
||||
result.error = err
|
||||
else
|
||||
-- Unbind confid from all pools which are currently using it
|
||||
local pools_lua_utils = require "pools_lua_utils"
|
||||
pools_lua_utils.unbind_all_configset_id(confid)
|
||||
end
|
||||
elseif(action == "rename") then
|
||||
local new_name = _POST["confset_name"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue