mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-01 16:30:10 +00:00
Implement flow status and unidirectional flows filters
This commit is contained in:
parent
1854b884a2
commit
b7e0669c33
7 changed files with 149 additions and 13 deletions
|
|
@ -220,6 +220,18 @@ local function validateClientOrServer(mode)
|
|||
return validateChoice(modes, mode)
|
||||
end
|
||||
|
||||
local function validateBroadcastUnicast(mode)
|
||||
local modes = {"unicast", "broadcast_multicast"}
|
||||
|
||||
return validateChoice(modes, mode)
|
||||
end
|
||||
|
||||
local function validateFlowStatus(mode)
|
||||
local modes = {"normal", "alerted"}
|
||||
|
||||
return validateChoice(modes, mode)
|
||||
end
|
||||
|
||||
local function validateStatsType(mode)
|
||||
local modes = {"severity_pie", "type_pie", "count_sparkline", "top_origins",
|
||||
"top_targets", "duration_pie", "longest_engaged", "counts_pie",
|
||||
|
|
@ -826,6 +838,8 @@ local known_parameters = {
|
|||
["drop_flow_policy"] = validateBool, -- true if target flow should be dropped
|
||||
["export"] = validateEmpty, -- set if data has to be exported
|
||||
["blocked_categories"] = validateCategoriesList, -- if_stats.lua
|
||||
["traffic_type"] = validateBroadcastUnicast, -- flows_stats.lua
|
||||
["flow_status"] = validateFlowStatus, -- flows_stats.lua
|
||||
}
|
||||
|
||||
-- A special parameter is formed by a prefix, followed by a variable suffix
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue