mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-13 14:32:55 +00:00
Reworked BGP support
This commit is contained in:
parent
312f7d2f86
commit
5651aa07ea
12 changed files with 427 additions and 360 deletions
|
|
@ -32,7 +32,9 @@ function format_utils.formatBgpBmpInfo(bgp_data)
|
|||
-- ASN
|
||||
out[#out + 1] = "<tr><th>" .. i18n("flow_details.bgp_peer_asn") .. "</th>"
|
||||
for _, peer in ipairs(peer_list) do
|
||||
out[#out + 1] = "<td>" .. peer.info.asn .. "</td>"
|
||||
out[#out + 1] = "<td>"
|
||||
.. "<A HREF=\"" .. ntop.getHttpPrefix() .. "/lua/hosts_stats.lua?asn=" .. peer.info.asn
|
||||
.. "\">" .. peer.info.asn .. " (" .. shortenString(ntop.getASNameFromASN(tonumber(peer.info.asn)), max_len) .. ")</A>"
|
||||
end
|
||||
out[#out + 1] = "</tr>"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue