Ported AS table to new table (#8475)

* Fixes parsing error while pasing XML strings with comments

* Ported host countries table to new vue table

* Added country filter when redirected to hosts list page

* Ported network discovery table to TableWithConfig vue component

* FIxed indentation

* Added documentation for VueJS, Lua and cpp used in ntopng

* Fixed error

* Added Netbox pref entry for default site, customizable input box size. To implement cpp side for netbox default site

* Removed tprint

* Ported AS table to new table

* Started fixing live flow IP filter

* Fixed date formatter

* Removed debug code

* Removed tprint

* Removed unused import

---------

Co-authored-by: DGabri <gabriele.deri@gmail.com>
Co-authored-by: Luca Deri <lucaderi@users.noreply.github.com>
This commit is contained in:
GabrieleDeri 2024-06-26 15:22:55 +02:00 committed by GitHub
parent d6965f24b7
commit 43dcd76e2f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
19 changed files with 247 additions and 413 deletions

View file

@ -12,6 +12,7 @@ require "lua_utils_get"
local rest_utils = require "rest_utils"
local rsp = {}
local country = _GET["country"]
local asn = _GET["asn"]
local ip_version_filters = {{
key = "version",
@ -325,4 +326,23 @@ if (not isEmptyString(country)) then
}
end
local as_filter = {{
key = "asn",
value = "",
label = i18n("all")
}, {
key = "asn",
value = asn,
label = asn
}}
if (not isEmptyString(asn)) then
rsp[#rsp + 1] = {
action = "asn",
label = i18n("as"),
name = "asn",
value = as_filter
}
end
rest_utils.answer(rest_utils.consts.success.ok, rsp)