mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 23:49:33 +00:00
Select host pool in host_details page
This commit is contained in:
parent
ee480c3619
commit
e88eda6168
2 changed files with 46 additions and 7 deletions
|
|
@ -980,6 +980,18 @@ function isValidPoolMember(member)
|
|||
return false
|
||||
end
|
||||
|
||||
function host2member(ip, vlan)
|
||||
local prefix
|
||||
|
||||
if isIPv4(ip) then
|
||||
prefix = 32
|
||||
else
|
||||
prefix = 128
|
||||
end
|
||||
|
||||
return ip .. "/" .. tostring(prefix) .. "@" .. tostring(vlan)
|
||||
end
|
||||
|
||||
function isLocal(host_ip)
|
||||
host = interface.getHostInfo(host_ip)
|
||||
|
||||
|
|
@ -1219,7 +1231,6 @@ function host2name(name, vlan)
|
|||
return name
|
||||
end
|
||||
|
||||
|
||||
function flowinfo2hostname(flow_info, host_type, vlan)
|
||||
local name
|
||||
local orig_name
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue