mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-30 07:59:35 +00:00
Fix undefined vlan
This commit is contained in:
parent
f8511b2c1b
commit
4d8734e8dd
2 changed files with 10 additions and 0 deletions
|
|
@ -227,4 +227,13 @@ end
|
|||
|
||||
-- ########################################################
|
||||
|
||||
function top_talkers_utils.enrichVlanInformation(vlan_tbl)
|
||||
local vlan_id = ternary(vlan_tbl.address, tostring(vlan_tbl.address), "0")
|
||||
vlan_tbl["label"] = vlan_id
|
||||
vlan_tbl["name"] = vlan_id
|
||||
vlan_tbl["url"] = ntop.getHttpPrefix()..'/lua/hosts_stats.lua?vlan='..vlan_id
|
||||
end
|
||||
|
||||
-- ########################################################
|
||||
|
||||
return top_talkers_utils
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue