Visualize flow quota status information

This commit is contained in:
emanuele-f 2017-04-10 11:07:07 +02:00
parent 1c9de84040
commit eb7fae8c4c
9 changed files with 213 additions and 15 deletions

View file

@ -1212,6 +1212,24 @@ end
-- ##############################################
function splitProtocol(proto_string)
local parts = string.split(proto_string, "%.")
local app_proto
local master_proto
if parts == nil then
master_proto = proto_string
app_proto = nil
else
master_proto = parts[1]
app_proto = parts[2]
end
return master_proto, app_proto
end
-- ##############################################
function getHostAltNamesKey()
return "ntopng.host_labels"
end