Added badge to snmp names

This commit is contained in:
MatteoBiscosi 2022-03-16 13:16:35 +01:00
parent c460853ed0
commit 31c9703223

View file

@ -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