Additional fixes after removal of NetworkInterfaceView

This commit is contained in:
Simone Mainardi 2016-08-10 12:23:14 +02:00
parent 12aa4c7399
commit 116ffda7c8
3 changed files with 25 additions and 16 deletions

View file

@ -6,11 +6,14 @@ dirs = ntop.getDirs()
package.path = dirs.installdir .. "/scripts/lua/modules/?.lua;" .. package.path
require "top_talkers"
require "lua_utils"
local function getVLANList(ifid, ifname)
interface.select(ifname)
hosts_stats,total = aggregateHostsStats(interface.getHostsInfo())
vlans,total = groupStatsByColumn(ifid, ifname, "vlan")
hosts_stats = interface.getHostsInfo()
vlans,total = groupHostsStatsByColumn(ifid, ifname, "vlan")
return vlans
end