mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-30 16:09:32 +00:00
Added path for iface ndpi ts
This commit is contained in:
parent
8875901d62
commit
5d91d2bb44
1 changed files with 4 additions and 1 deletions
|
|
@ -113,6 +113,7 @@ local function schema_get_path(schema, tags)
|
|||
local host_or_network = nil
|
||||
local parts = string.split(schema.name, ":")
|
||||
|
||||
|
||||
if ((string.find(schema.name, "iface:") ~= 1) and -- interfaces are only identified by the first tag
|
||||
(#schema._tags >= 1)) then -- some schema do not have any tag, e.g. "process:*" schemas
|
||||
local prefix = HOST_PREFIX_MAP[parts[1]] or (parts[1] .. ":")
|
||||
|
|
@ -126,6 +127,7 @@ local function schema_get_path(schema, tags)
|
|||
end
|
||||
end
|
||||
|
||||
|
||||
-- Some exceptions to avoid conflicts / keep compatibility
|
||||
if parts[1] == "snmp_if" then
|
||||
if tags.qos_class_id then
|
||||
|
|
@ -175,7 +177,8 @@ local function schema_get_path(schema, tags)
|
|||
elseif parts[2] == "dscp" then
|
||||
suffix = suffix .. "dscp/"
|
||||
end
|
||||
|
||||
elseif parts[2] == "ndpi_full" then
|
||||
suffix = "l7protos/"
|
||||
elseif parts[2] == "ndpi_categories" then
|
||||
suffix = "ndpi_categories/"
|
||||
elseif parts[2] == "ndpi_flows" then
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue