Added the filter to display ASN flows on the as_overview page (#9358)

This commit is contained in:
Manuel Ceroni 2025-07-07 16:03:28 +02:00 committed by GitHub
parent 5a18fccf01
commit f1b1978338
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 40 additions and 2 deletions

View file

@ -23,7 +23,7 @@ local server = _GET["server"]
local flow_info = _GET["flow_info"]
local flowstats = interface.getActiveFlowsStats(host, nil, false, talking_with, client, server, flow_info)
local selected_ip = _GET["flowhosts_type"]
local asn = _GET["asn"]
local rsp = {}
if interface.isView() then
@ -233,7 +233,24 @@ if not isEmptyString(_GET["port"]) then
value = port_filters
}
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
local status_filters = {{
key = "alert_type",
value = "",