Move isc dhcp server utils

This commit is contained in:
Alfredo Cardigliano 2025-11-07 10:13:30 +01:00
parent 7204d9968f
commit 580efb4615
2 changed files with 10 additions and 8 deletions

View file

@ -4,6 +4,8 @@
local dirs = ntop.getDirs()
package.path = dirs.installdir .. "/scripts/lua/modules/conf_handlers/?.lua;" .. package.path
local json = require("dkjson")
local os_utils = require "os_utils"
local sys_utils = require "sys_utils"
@ -1070,11 +1072,11 @@ end
-- ##############################################
function system_config:_enableDisableDhcpService()
local dhcp_service_utils = require "dhcp_service_utils"
local isc_dhcp_server = require "isc_dhcp_server"
if self:isDhcpServerEnabled() then
dhcp_service_utils.startDHCPService()
isc_dhcp_server.startDHCPService()
else
dhcp_service_utils.stopDHCPService()
isc_dhcp_server.stopDHCPService()
end
end