Improve dhcp server configuration page

This commit is contained in:
Alfredo Cardigliano 2025-11-11 15:38:25 +01:00
parent 4b5b8ae9b5
commit 726843a978
3 changed files with 16 additions and 3 deletions

View file

@ -24,6 +24,8 @@ local function serviceExists(service_name)
return not isEmptyString(result)
end
-- ###############################################################
-- Detect which DHCP server is available on the system and return
-- the appropriate DHCP server module (kea_dhcp_server or dhcp_server_utils)
function dhcp_server_utils.getDhcpServerHandler()
@ -50,6 +52,13 @@ end
-- ###############################################################
function dhcp_server_utils.getDhcpServerName()
local dhcp_handler = dhcp_server_utils.getDhcpServerHandler()
return dhcp_handler.service_name
end
-- ###############################################################
-- This function is used to check if the DHCP server status is up
-- and if not, restart it.
function dhcp_server_utils.checkRestartDHCPService()