mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 23:49:33 +00:00
Cleanup as_utils
This commit is contained in:
parent
b6026abf55
commit
60ac86c6d0
2 changed files with 41 additions and 32 deletions
|
|
@ -6,6 +6,7 @@ package.path = dirs.installdir .. "/scripts/lua/modules/?.lua;" .. package.path
|
|||
|
||||
local rest_utils = require "rest_utils"
|
||||
local json = require "dkjson"
|
||||
local as_utils = require "as_utils"
|
||||
|
||||
local res = {}
|
||||
|
||||
|
|
@ -13,16 +14,13 @@ local res = {}
|
|||
res = {
|
||||
{
|
||||
key = "customer_asn",
|
||||
value_description = ntop.getCache(
|
||||
"ntopng.prefs.config_customer_asn_list") or ""
|
||||
value_description = as_utils.getCustomerASNList()
|
||||
}, {
|
||||
key = "sub_customer_asn",
|
||||
value_description = ntop.getCache(
|
||||
"ntopng.prefs.config_sub_customer_asn_list") or ""
|
||||
value_description = as_utils.getSubCustomerASNList()
|
||||
}, {
|
||||
key = "remote_asn",
|
||||
value_description = ntop.getCache("ntopng.prefs.config_remote_asn_list") or
|
||||
""
|
||||
value_description = as_utils.getRemoteASNList()
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue