Add endpoints for exporting pools (wip) and all configurations. Improve the import API to import modules in order. (#4475)

This commit is contained in:
Alfredo Cardigliano 2020-10-02 11:22:55 +02:00
parent a6acd8e317
commit 50411c94e4
14 changed files with 340 additions and 15 deletions

View file

@ -33,10 +33,12 @@ if not modules or not modules["snmp"] then
end
local items = {}
local snmp_import_export = snmp_import_export:create()
items["snmp"] = {
local snmp_ie = snmp_import_export:create()
items[#items+1] = {
name = "snmp",
conf = modules["snmp"],
instance = snmp_import_export
instance = snmp_ie
}
import_export_rest_utils.import(items)