mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-30 07:59:35 +00:00
Label fix when mac is missing
This commit is contained in:
parent
469e1fc69f
commit
8b046d1996
1 changed files with 8 additions and 1 deletions
|
|
@ -72,15 +72,22 @@ function flowinfo2hostname(flow_info, host_type, alerts_view, add_hostname)
|
|||
end
|
||||
end
|
||||
|
||||
|
||||
local hostinfo = {
|
||||
host = flow_info[host_type .. ".ip"],
|
||||
label = flow_info[host_type .. ".host"],
|
||||
mac = flow_info[host_type .. ".mac"],
|
||||
-- mac = flow_info[host_type .. ".mac"],
|
||||
dhcpHost = flow_info[host_type .. ".dhcpHost"],
|
||||
broadcast_domain_host = flow_info[host_type .. ".broadcast_domain_host"],
|
||||
vlan = flow_info["vlan"]
|
||||
}
|
||||
|
||||
mac = flow_info[host_type .. ".mac"]
|
||||
|
||||
if not isEmptyString(mac) then
|
||||
hostinfo.mac = mac
|
||||
end
|
||||
|
||||
return (hostinfo2label(hostinfo, true, false, true))
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue