Select host pool in host_details page

This commit is contained in:
emanuele-f 2017-02-08 12:40:03 +01:00
parent ee480c3619
commit e88eda6168
2 changed files with 46 additions and 7 deletions

View file

@ -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