mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-03 01:10:10 +00:00
Fixed unexpected new device plugin visual bugs
This commit is contained in:
parent
502a85d9a9
commit
801bdb6bdc
2 changed files with 10 additions and 7 deletions
|
|
@ -22,10 +22,13 @@ local function formatUnexpectedNewDevice(ifid, alert, info)
|
|||
|
||||
if access_port then
|
||||
return(i18n("unexpected_new_device.status_unexpected_new_device_description_pro", {
|
||||
device = info.device,
|
||||
mac_address = info.device,
|
||||
host_url = getMacUrl(alert.alert_entity_val),
|
||||
snmp_url = snmpDeviceUrl(access_port.snmp_device_ip),
|
||||
device_ip = access_port.snmp_device_ip,
|
||||
port = access_port.id,
|
||||
port_url = snmpIfaceUrl(access_port.snmp_device_ip, access_port.id),
|
||||
interface_name = access_port.name,
|
||||
ip = access_port.snmp_device_ip,
|
||||
ip_url = snmpDeviceUrl(access_port.snmp_device_ip),
|
||||
}))
|
||||
end
|
||||
end
|
||||
|
|
@ -33,8 +36,8 @@ local function formatUnexpectedNewDevice(ifid, alert, info)
|
|||
|
||||
-- Non enterprise software or the host hasn't an snmp location
|
||||
return(i18n("unexpected_new_device.status_unexpected_new_device_description", {
|
||||
device = info.device,
|
||||
url = getMacUrl(alert.alert_entity_val),
|
||||
mac_address = info.device,
|
||||
host_url = getMacUrl(alert.alert_entity_val),
|
||||
}))
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue