]]
local pools_stats = interface.getHostPoolsStats()
local pool_stats = pools_stats and pools_stats[tonumber(pool_id)]
if (ntop.isEnterprise() or ntop.isnEdge()) and pool_id ~= host_pools_utils.DEFAULT_POOL_ID and ifstats.inline and (page == "quotas") and (pool_stats ~= nil) then
print(
template.gen("modal_confirm_dialog.html", {
dialog={
id = "reset_quotas_dialog",
action = "$('#reset_quotas_form').submit()",
title = i18n("host_pools.reset_quotas"),
message = i18n("host_pools.confirm_reset_pool_quotas", {pool=pool_name}),
confirm = i18n("host_pools.reset_quotas"),
}
})
)
print[[]]
host_pools_utils.printQuotas(pool_id, nil, page_params)
print[[
]]
if ntop.isnEdge() then
print[[]]
end
print[[
]]
elseif page == "historical" then
if(not ts_utils.exists("host_pool:traffic", {ifid=ifId, pool=pool_id})) then
print("