mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-02 00:40:10 +00:00
Change top menu for infrastructure - redirection for the time being (WIP)
This commit is contained in:
parent
cb217b9d4c
commit
ecc371324f
8 changed files with 96 additions and 26 deletions
|
|
@ -91,6 +91,14 @@ dofile(dirs.installdir .. "/scripts/lua/inc/menu.lua")
|
|||
-- ######################################
|
||||
|
||||
local monitor_infrastructure = false
|
||||
local instance_id = _POST["instance_id"] -- TODO read from ntop.getInstanceId()
|
||||
if instance_id == 'aggregate' and ntop.isEnterpriseM() then
|
||||
local infrastructure_utils = require("infrastructure_utils")
|
||||
local instances = infrastructure_utils.get_all_instances()
|
||||
if table.len(instances) > 0 then
|
||||
monitor_infrastructure = true
|
||||
end
|
||||
end
|
||||
|
||||
local context = {
|
||||
ifid = ifid,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue