mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-28 23:19:33 +00:00
Fixes flow details snmp device ip not formatted
This commit is contained in:
parent
f7d03ccb93
commit
78d84add62
2 changed files with 5 additions and 5 deletions
|
|
@ -5029,9 +5029,7 @@ end
|
|||
function format_device_name(device_ip, short_version)
|
||||
local device_name = device_ip
|
||||
|
||||
if ntop.isPro() then
|
||||
package.path = dirs.installdir .. "/pro/scripts/lua/modules/?.lua;" .. package.path
|
||||
snmp_location = require "snmp_location"
|
||||
if ntop.isPro() then
|
||||
device_name = hostinfo2label(hostkey2hostinfo(device_ip))
|
||||
|
||||
if device_name ~= device_ip then
|
||||
|
|
@ -5039,7 +5037,6 @@ function format_device_name(device_ip, short_version)
|
|||
device_name = shortenString(device_name, 32)
|
||||
end
|
||||
device_name = string.format('%s [%s]', device_ip, device_name)
|
||||
device_name = snmp_location.snmp_device_link(device_ip, device_name)
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue