Unify host and mac device types

Now the device type is a layer-2 concept and as such is stored into the Mac objects
This commit is contained in:
emanuele-f 2017-08-15 14:05:50 +02:00
parent c4a6ddd3a4
commit 6cdcc0ffac
15 changed files with 112 additions and 129 deletions

View file

@ -185,13 +185,14 @@ function print_single_group(value)
if((alt ~= nil) and (alt ~= value["id"])) then alt = " ("..alt..")" else alt = "" end
print('"column_link": "<A HREF=\''..ntop.getHttpPrefix()..'/lua/mac_details.lua?mac='.. value["id"] ..'\'>'.. value["id"]..alt..'</A>')
if(not(isSpecialMac(value["id"]))) then
-- TODO how is this used?
--[[if(not(isSpecialMac(value["id"]))) then
local icon = getHostIcon(value["id"])
if(icon ~= "") then
print(icon)
end
end
end]]
print('",')