Fixed the ASN sankey and ASN table links (#9653)

This commit is contained in:
Manuel Ceroni 2025-09-12 10:08:18 +02:00 committed by GitHub
parent 06fc4d700d
commit ac862abc0a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 13 additions and 5 deletions

View file

@ -946,22 +946,24 @@ end
-- ##############################################
function generateExporterLink(ip)
local probe_info = getProbeInfoFromExporterIP(ip)
ip_string = ntop.inet_ntoa(ip)
local probe_info = getProbeInfoFromExporterIP(ip_string)
if probe_info then
return string.format("probe_uuid=%s", probe_info.probe_uuid)
end
return string.format("ip=%s", ip)
return string.format("ip=%s", ip_string)
end
-- ##############################################
function generateExporterInterfaceLink(ip, interface)
local probe_info = getProbeInfoFromExporterIP(ip)
ip_string = ntop.inet_ntoa(ip)
local probe_info = getProbeInfoFromExporterIP(ip_string)
if probe_info then
return string.format("ip=%s&exporter_uuid=%s&probe_uuid=%s", ip,
return string.format("ip=%s&exporter_uuid=%s&probe_uuid=%s", ip_string,
probe_info.exporter_uuid, probe_info.probe_uuid)
end
return string.format("ip=%s&interface=%s", ip, interface)
return string.format("ip=%s&interface=%s", ip_string, interface)
end
-- ##############################################