mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-05 10:41:34 +00:00
Fixed the ASN sankey and ASN table links (#9653)
This commit is contained in:
parent
06fc4d700d
commit
ac862abc0a
2 changed files with 13 additions and 5 deletions
|
|
@ -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
|
||||
|
||||
-- ##############################################
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue