Flow details improvements in nEdge

This commit is contained in:
Emanuele Faranda 2018-10-15 19:11:33 +02:00
parent 6717e3850b
commit a20f03f0b6
2 changed files with 18 additions and 7 deletions

View file

@ -28,6 +28,11 @@ function host_pools_utils.poolIdToUsername(pool_id)
local ifid = getInterfaceId(ifname)
return host_pools_utils.getPoolName(ifid, pool_id)
end
function host_pools_utils.getUserUrl(pool_id)
return ntop.getHttpPrefix() .."/lua/pro/nedge/admin/nf_edit_user.lua?username=" ..
ternary(tostring(pool_id) == host_pools_utils.DEFAULT_POOL_ID, "", host_pools_utils.poolIdToUsername(pool_id))
end
--
-- END NEDGE specific code
--