mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-28 23:19:33 +00:00
Move dhcp server code to nf_config. Code cleanup.
This commit is contained in:
parent
035afedf25
commit
49749f7e3b
3 changed files with 25 additions and 267 deletions
|
|
@ -81,11 +81,14 @@ function system_setup_ui_utils.printConfigChange(sys_config, warnings)
|
|||
local config_changed = sys_config.configChanged()
|
||||
|
||||
if config_changed or first_start then
|
||||
local dhcp_config = sys_config:getDhcpServerConfig()
|
||||
|
||||
if dhcp_config.enabled then
|
||||
if not sys_config:hasValidDhcpRange(dhcp_config.subnet.first_ip, dhcp_config.subnet.last_ip) then
|
||||
warnings[#warnings + 1] = i18n("nedge.invalid_dhcp_range")
|
||||
if is_nedge then
|
||||
local dhcp_config = sys_config:getDhcpServerConfig()
|
||||
|
||||
if dhcp_config.enabled then
|
||||
if not sys_config:hasValidDhcpRange(dhcp_config.subnet.first_ip, dhcp_config.subnet.last_ip) then
|
||||
warnings[#warnings + 1] = i18n("nedge.invalid_dhcp_range")
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue