mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-30 16:09:32 +00:00
Reworks factory reset
This commit is contained in:
parent
6a23f59bcf
commit
6fc182412f
6 changed files with 85 additions and 31 deletions
|
|
@ -1,18 +1,13 @@
|
|||
--
|
||||
-- (C) 2019-20 - ntop.org
|
||||
--
|
||||
dirs = ntop.getDirs()
|
||||
local dirs = ntop.getDirs()
|
||||
package.path = dirs.installdir .. "/scripts/lua/modules/?.lua;" .. package.path
|
||||
package.path = dirs.installdir .. "/scripts/lua/modules/import_export/?.lua;" .. package.path
|
||||
|
||||
require "lua_utils"
|
||||
|
||||
local snmp_import_export = require "snmp_import_export"
|
||||
local plugins_utils = require("plugins_utils")
|
||||
local am_import_export = plugins_utils.loadModule("active_monitoring", "am_import_export")
|
||||
local notifications_import_export = require "notifications_import_export"
|
||||
local scripts_import_export = require "scripts_import_export"
|
||||
local pool_import_export = require "pool_import_export"
|
||||
local all_import_export = require "all_import_export"
|
||||
local json = require "dkjson"
|
||||
local rest_utils = require "rest_utils"
|
||||
local import_export_rest_utils = require "import_export_rest_utils"
|
||||
|
|
@ -30,10 +25,6 @@ if not haveAdminPrivileges() then
|
|||
end
|
||||
|
||||
local instances = {}
|
||||
instances["snmp"] = snmp_import_export:create()
|
||||
instances["active_monitoring"] = am_import_export:create()
|
||||
instances["notifications"] = notifications_import_export:create()
|
||||
instances["scripts"] = scripts_import_export:create()
|
||||
instances["pool"] = pool_import_export:create()
|
||||
instances["all"] = all_import_export:create()
|
||||
import_export_rest_utils.reset(instances)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue