Cleanup as_utils

This commit is contained in:
Alfredo Cardigliano 2025-07-16 10:23:15 +02:00
parent b6026abf55
commit 60ac86c6d0
2 changed files with 41 additions and 32 deletions

View file

@ -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()
}
}