mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-05 10:41:34 +00:00
Improve dhcp server configuration page
This commit is contained in:
parent
4b5b8ae9b5
commit
726843a978
3 changed files with 16 additions and 3 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue