Removed VLAN tag in hosts and flows tables when the table contains a VLAN id (redundant info)

This commit is contained in:
Luca Deri 2017-02-25 08:46:55 +01:00
parent 593543f14a
commit 9e121cfbb5
3 changed files with 21 additions and 12 deletions

View file

@ -230,7 +230,7 @@ for _key, _value in pairsByKeys(vals, funct) do
print ("\"column_ip\" : \"<A HREF='")
url = ntop.getHttpPrefix().."/lua/host_details.lua?" ..hostinfo2url(hosts_stats[key])
print(url .. "'>")
print(mapOS2Icon(key))
print(mapOS2Icon(stripVlan(key)))
print(" </A> ")
if(value["systemhost"] == true) then print("&nbsp;<i class='fa fa-flag'></i>") end