mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-01 16:30:10 +00:00
Implement historical flows replay to a virtual interface
This commit is contained in:
parent
36ae957b40
commit
a2c60c14eb
9 changed files with 93 additions and 26 deletions
|
|
@ -119,6 +119,30 @@ function historical_flow_utils.parse_l7_cat(l7_cat)
|
|||
return l7_cat
|
||||
end
|
||||
|
||||
-- #####################################
|
||||
|
||||
function historical_flow_utils.get_selected_filters(ifid)
|
||||
local selected_filters = tag_utils.get_tag_filters_from_request()
|
||||
|
||||
if ifid == nil then
|
||||
ifid = interface.getId()
|
||||
end
|
||||
selected_filters['ifid'] = ifid
|
||||
|
||||
-- Exception parsing
|
||||
if not isEmptyString(selected_filters['cli_asn']) then
|
||||
selected_filters['cli_asn'] = historical_flow_utils.parse_asn(selected_filters["cli_asn"])
|
||||
end
|
||||
if not isEmptyString(selected_filters['srv_asn']) then
|
||||
selected_filters['srv_asn'] = historical_flow_utils.parse_asn(selected_filters["srv_asn"])
|
||||
end
|
||||
if not isEmptyString(selected_filters['l7cat']) then
|
||||
selected_filters['l7cat'] = historical_flow_utils.parse_l7_cat(selected_filters["l7cat"])
|
||||
end
|
||||
|
||||
return selected_filters
|
||||
end
|
||||
|
||||
------------------------------------------------------------------------
|
||||
-- Functions to convert DB columns in the format used by the JS DataTable
|
||||
|
||||
|
|
|
|||
|
|
@ -184,6 +184,7 @@ page_utils.menu_entries = {
|
|||
-- Developer
|
||||
directories = {key = "directories", i18n_title = "about.directories", section = "dev", help_link = "https://www.ntop.org/guides/ntopng/scripts/distributing_scripts.html"},
|
||||
checks_dev = {key = "checks_dev", i18n_title = "about.checks", section = "dev", help_link = "https://www.ntop.org/guides/ntopng/scripts/checks.html"},
|
||||
analyze_db = {key = "analyze_db", i18n_title = "about.analyze_db", section = "dev", help_link = "https://www.ntop.org/guides/ntopng/advanced_features/index.html"},
|
||||
analyze_pcap = {key = "analyze_pcap", i18n_title = "about.analyze_pcap", section = "dev", help_link = "https://www.ntop.org/guides/ntopng/advanced_features/index.html"},
|
||||
alert_definitions = {key = "alert_definitions", i18n_title = "about.alert_defines", section = "dev", help_link = "https://www.ntop.org/guides/ntopng/scripts/alert_definitions.html"},
|
||||
api = {key = "api", i18n_title = "lua_c_api", section = "dev"},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue