mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 23:49:33 +00:00
Added dropdown to select the correct ASN (#9335)
This commit is contained in:
parent
0274830c2c
commit
b9eeacbee3
11 changed files with 208 additions and 94 deletions
|
|
@ -1,8 +1,6 @@
|
|||
|
||||
--
|
||||
-- (C) 2021 - ntop.org
|
||||
--
|
||||
|
||||
local dirs = ntop.getDirs()
|
||||
package.path = dirs.installdir .. "/scripts/lua/modules/?.lua;" .. package.path
|
||||
|
||||
|
|
@ -13,9 +11,19 @@ local res = {}
|
|||
|
||||
-- Get data from redis: expected format, array of objects with keys:
|
||||
res = {
|
||||
{key= "customer_asn", value_description=ntop.getCache("ntopng.prefs.config_customer_asn_list") or "" },
|
||||
{key= "sub_customer_asn", value_description=ntop.getCache("ntopng.prefs.config_sub_customer_asn_list") or "" },
|
||||
{key= "remote_asn", value_description=ntop.getCache("ntopng.prefs.config_remote_asn_list") or "" },
|
||||
{
|
||||
key = "customer_asn",
|
||||
value_description = ntop.getCache(
|
||||
"ntopng.prefs.config_customer_asn_list") or ""
|
||||
}, {
|
||||
key = "sub_customer_asn",
|
||||
value_description = ntop.getCache(
|
||||
"ntopng.prefs.config_sub_customer_asn_list") or ""
|
||||
}, {
|
||||
key = "remote_asn",
|
||||
value_description = ntop.getCache("ntopng.prefs.config_remote_asn_list") or
|
||||
""
|
||||
}
|
||||
}
|
||||
|
||||
rest_utils.answer(rest_utils.consts.success.ok, res)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue