Skip to content

Commit

Permalink
Modified dhcp server selection order
Browse files Browse the repository at this point in the history
Signed-off-by: pierantoniomerlino <[email protected]>
  • Loading branch information
pierantoniomerlino committed Sep 27, 2024
1 parent 6c5ba99 commit cf9aee6
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,12 @@ public DhcpServerManager(CommandExecutorService service) {

public static DhcpServerTool getTool() {
if (dhcpServerTool == DhcpServerTool.NONE) {
if (LinuxNetworkUtil.toolExists(DhcpServerTool.DHCPD.getValue())) {
dhcpServerTool = DhcpServerTool.DHCPD;
if (LinuxNetworkUtil.toolExists(DhcpServerTool.DNSMASQ.getValue())) {
dhcpServerTool = DhcpServerTool.DNSMASQ;
} else if (LinuxNetworkUtil.toolExists(DhcpServerTool.UDHCPD.getValue())) {
dhcpServerTool = DhcpServerTool.UDHCPD;
} else if (LinuxNetworkUtil.toolExists(DhcpServerTool.DNSMASQ.getValue())) {
dhcpServerTool = DhcpServerTool.DNSMASQ;
} else if (LinuxNetworkUtil.toolExists(DhcpServerTool.DHCPD.getValue())) {
dhcpServerTool = DhcpServerTool.DHCPD;
}
}

Expand Down

0 comments on commit cf9aee6

Please sign in to comment.