mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 15:39:33 +00:00
Add ability to search by network cidr/alias in search box
This commit is contained in:
parent
074fccb1b3
commit
021812a238
5 changed files with 35 additions and 6 deletions
|
|
@ -1573,14 +1573,14 @@ end
|
|||
|
||||
-- ##############################################
|
||||
|
||||
function getLocalNetworkAliassKey()
|
||||
function getLocalNetworkAliasKey()
|
||||
return "ntopng.network_aliases"
|
||||
end
|
||||
|
||||
-- ##############################################
|
||||
|
||||
function getLocalNetworkAlias(network)
|
||||
local alias = ntop.getHashCache(getLocalNetworkAliassKey(), network)
|
||||
local alias = ntop.getHashCache(getLocalNetworkAliasKey(), network)
|
||||
|
||||
if not isEmptyString(alias) then
|
||||
return alias
|
||||
|
|
@ -1605,9 +1605,9 @@ end
|
|||
|
||||
function setLocalNetworkAlias(network, alias)
|
||||
if((network ~= alias) or isEmptyString(alias)) then
|
||||
ntop.setHashCache(getLocalNetworkAliassKey(), network, alias)
|
||||
ntop.setHashCache(getLocalNetworkAliasKey(), network, alias)
|
||||
else
|
||||
ntop.delHashCache(getLocalNetworkAliassKey(), network)
|
||||
ntop.delHashCache(getLocalNetworkAliasKey(), network)
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue