Added vlan alias in all pages (Issue #5527)

This commit is contained in:
l3wiz 2021-06-18 16:52:33 +02:00
parent f9f05d02db
commit cb90d49b52
5 changed files with 5 additions and 5 deletions

View file

@ -719,7 +719,7 @@ else
if ifstats.vlan and flow["vlan"] > 0 then
print("<tr><th width=30%>")
print(i18n("details.vlan_id"))
print("</th><td colspan=2>" .. flow["vlan"].. "</td></tr>\n")
print("</th><td colspan=2>" .. getFullVlanName(flow["vlan"]) .. "</td></tr>\n")
end
print("<tr><th width=30%>"..i18n("flow_details.flow_peers_client_server").."</th><td colspan=2>"..getFlowLabel(flow, true, not ifstats.isViewed --[[ don't add hyperlinks, viewed interface don't have hosts --]], nil, nil, true --[[ add flags ]]).."</td></tr>\n")

View file

@ -260,7 +260,7 @@ for _key, value in ipairs(flows_stats) do -- pairsByValues(vals, funct) do
record["column_vlan"] = ''
if((value["vlan"] ~= nil)) then
record["column_vlan"] = value["vlan"]
record["column_vlan"] = getFullVlanName(value["vlan"])
end
local column_proto_l4 = ''

View file

@ -319,7 +319,7 @@ for _key, _value in pairsByKeys(vals, funct) do
end
if value["vlan"] > 0 then
record["column_vlan"] = value["vlan"]
record["column_vlan"] = getFullVlanName(value["vlan"])
end
record["column_since"] = secondsToTime(now-value["seen.first"] + 1)

View file

@ -561,7 +561,7 @@ if((page == "overview") or (page == nil)) then
if host["vlan"] and host["vlan"] > 0 then
print("<tr><th>")
print(i18n("details.vlan_id"))
print("</th><td colspan=2><A HREF="..ntop.getHttpPrefix().."/lua/hosts_stats.lua?vlan="..host["vlan"]..">"..host["vlan"].."</A></td></tr>\n")
print("</th><td colspan=2><A HREF="..ntop.getHttpPrefix().."/lua/hosts_stats.lua?vlan="..host["vlan"]..">"..getFullVlanName(host["vlan"]).."</A></td></tr>\n")
end
if(host["os"] ~= "" and host["os"] ~= 0) then

View file

@ -1318,7 +1318,7 @@ function hostVisualization(ip, name, vlan)
end
else
if vlan ~= nil and tonumber(vlan) > 0 then
name = name.."@"..vlan
name = name.."@"..getFullVlanName(vlan)
end
end