mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 23:49:33 +00:00
Added badge to snmp names
This commit is contained in:
parent
c460853ed0
commit
31c9703223
1 changed files with 5 additions and 2 deletions
|
|
@ -5027,8 +5027,11 @@ function format_portidx_name(cached_dev, portidx)
|
|||
if (cached_dev) and (cached_dev["interfaces"]) then
|
||||
local port_info = cached_dev["interfaces"][tostring(portidx)]
|
||||
|
||||
if port_info then
|
||||
idx_name = portidx .. " [" .. shortenString(port_info["name"]) .. "]"
|
||||
if port_info then
|
||||
package.path = dirs.installdir .. "/pro/scripts/lua/modules/?.lua;" .. package.path
|
||||
snmp_location = require "snmp_location"
|
||||
|
||||
idx_name = snmp_location.snmp_port_link(port_info)
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue