mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-28 23:19:33 +00:00
Add network configuration gui for passive mode appliance
This commit is contained in:
parent
faedd4ac75
commit
fbbbe4f4ad
2 changed files with 49 additions and 26 deletions
|
|
@ -23,7 +23,7 @@ local subpages = {
|
|||
{name = "network_interfaces", nedge_only = false, label = i18n("prefs.network_interfaces"), url = "interfaces.lua" },
|
||||
{name = "network_setup", nedge_only = false, label = i18n("nedge.interfaces_configuration"), url = "network.lua"},
|
||||
{name = "dhcp", nedge_only = false, label = i18n("nedge.dhcp_server"), url = "dhcp.lua", routing_only = true},
|
||||
{name = "dns", nedge_only = false, label = i18n("nedge.dns_configuration"), url = "dns.lua", vlan_trunk = false},
|
||||
{name = "dns", nedge_only = false, label = i18n("nedge.dns_configuration"), url = "dns.lua", vlan_trunk = false, passive_excluded = true},
|
||||
{name = "captive_portal", nedge_only = true, label = i18n("prefs.toggle_captive_portal_title"), url = "captive_portal.lua", vlan_trunk = false},
|
||||
{name = "shapers", nedge_only = true, label = i18n("nedge.shapers"), url="shapers.lua"},
|
||||
{name = "gateways", nedge_only = true, label = i18n("nedge.gateways"), url = "gateways.lua", routing_only = true},
|
||||
|
|
@ -172,13 +172,11 @@ function system_setup_ui_utils.printPageBody(sys_config, print_page_body_callbac
|
|||
for _, subpage in ipairs(subpages) do
|
||||
if not is_nedge and subpage.nedge_only then
|
||||
goto continue
|
||||
end
|
||||
|
||||
if (subpage.routing_only == true) and (not sys_config:isMultipathRoutingEnabled()) then
|
||||
elseif mode == "passive" and subpage.passive_excluded == true then
|
||||
goto continue
|
||||
end
|
||||
|
||||
if (subpage.vlan_trunk == false) and (sys_config:isBridgeOverVLANTrunkEnabled()) then
|
||||
elseif (subpage.routing_only == true) and (not sys_config:isMultipathRoutingEnabled()) then
|
||||
goto continue
|
||||
elseif (subpage.vlan_trunk == false) and (sys_config:isBridgeOverVLANTrunkEnabled()) then
|
||||
goto continue
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue