")
return
end
--[[
Create Menu Bar with buttons
--]]
local nav_url = ntop.getHttpPrefix().."/lua/network_details.lua?network="..tonumber(network)
print [[
]]
--[[
Selectively render information pages
--]]
if page == "historical" then
local schema = _GET["ts_schema"] or "subnet:traffic"
local selected_epoch = _GET["epoch"] or ""
local url = ntop.getHttpPrefix()..'/lua/network_details.lua?ifid='..ifId..'&network='..network..'&page=historical'
local tags = {
ifid = ifId,
subnet = network_name,
}
drawGraphs(ifId, schema, tags, _GET["zoom"], url, selected_epoch, {
timeseries = {
{schema="subnet:traffic", label=i18n("traffic")},
{schema="subnet:broadcast_traffic", label=i18n("broadcast_traffic")},
{schema="subnet:engaged_alerts", label=i18n("show_alerts.engaged_alerts")},
{schema="subnet:tcp_retransmissions", label=i18n("graphs.tcp_packets_retr"), nedge_exclude=1},
{schema="subnet:tcp_out_of_order", label=i18n("graphs.tcp_packets_ooo"), nedge_exclude=1},
{schema="subnet:tcp_lost", label=i18n("graphs.tcp_packets_lost"), nedge_exclude=1},
{schema="subnet:tcp_keep_alive", label=i18n("graphs.tcp_packets_keep_alive"), nedge_exclude=1},
}
})
elseif (page == "config") then
if(not isAdministrator()) then
return
end
print[[
]]
elseif(page == "alerts") then
drawAlertSourceSettings("network", network_name,
i18n("show_alerts.network_delete_config_btn", {network=network_name}), "show_alerts.network_delete_config_confirm",
"network_details.lua", {network=network}, network_name, "network")
elseif page == "traffic_report" then
dofile(dirs.installdir .. "/pro/scripts/lua/enterprise/traffic_report.lua")
end
dofile(dirs.installdir .. "/scripts/lua/inc/footer.lua")