mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 23:49:33 +00:00
Update tracking mac address. (#7419)
This commit is contained in:
parent
7d98718e7c
commit
c72a5c9d28
7 changed files with 7719 additions and 7650 deletions
|
|
@ -304,7 +304,13 @@ else
|
|||
})
|
||||
|
||||
-- ##############################################
|
||||
|
||||
local checks = require "checks"
|
||||
local interface_config = checks.getConfigset()["config"]["interface"]
|
||||
local devices_exclusion_enabled = false
|
||||
if (interface_config) and (interface_config["device_connection_disconnection"]) and
|
||||
(interface_config["device_connection_disconnection"]["min"]["enabled"]) then
|
||||
devices_exclusion_enabled = true
|
||||
end
|
||||
-- Hosts
|
||||
page_utils.add_menubar_section({
|
||||
section = page_utils.menu_sections.hosts,
|
||||
|
|
@ -317,6 +323,12 @@ else
|
|||
hidden = not ifs.has_macs,
|
||||
url = '/lua/macs_stats.lua'
|
||||
}, {
|
||||
entry = page_utils.menu_entries.device_exclusions,
|
||||
section = page_utils.menu_sections.device_exclusions,
|
||||
hidden = not is_admin or not auth.has_capability(auth.capabilities.checks) or not ntop.isEnterpriseM() or
|
||||
not devices_exclusion_enabled,
|
||||
url = '/lua/pro/admin/edit_device_exclusions.lua'
|
||||
} ,{
|
||||
entry = page_utils.menu_entries.networks,
|
||||
url = '/lua/network_stats.lua'
|
||||
}, {
|
||||
|
|
@ -607,14 +619,7 @@ page_utils.add_menubar_section({
|
|||
url = '/lua/admin/endpoint_notifications_list.lua'
|
||||
})
|
||||
|
||||
local checks = require "checks"
|
||||
local interface_config = checks.getConfigset()["config"]["interface"]
|
||||
local devices_exclusion_enabled = false
|
||||
|
||||
if (interface_config) and (interface_config["device_connection_disconnection"]) and
|
||||
(interface_config["device_connection_disconnection"]["min"]["enabled"]) then
|
||||
devices_exclusion_enabled = true
|
||||
end
|
||||
|
||||
page_utils.add_menubar_section({
|
||||
section = page_utils.menu_sections.admin,
|
||||
|
|
@ -640,12 +645,6 @@ page_utils.add_menubar_section({
|
|||
}, {
|
||||
entry = page_utils.menu_entries.divider,
|
||||
hidden = not devices_exclusion_enabled
|
||||
}, {
|
||||
entry = page_utils.menu_entries.device_exclusions,
|
||||
section = page_utils.menu_sections.device_exclusions,
|
||||
hidden = not is_admin or not auth.has_capability(auth.capabilities.checks) or not ntop.isPro() or
|
||||
not devices_exclusion_enabled,
|
||||
url = '/lua/pro/admin/edit_device_exclusions.lua'
|
||||
}, {
|
||||
entry = page_utils.menu_entries.divider
|
||||
}, {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue