mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-05 02:16:39 +00:00
Added the filter to display ASN flows on the as_overview page (#9358)
This commit is contained in:
parent
5a18fccf01
commit
f1b1978338
4 changed files with 40 additions and 2 deletions
|
|
@ -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 = "",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue