Make DHCP range optional

Signed-off-by: Jonathon Anderson <janderson@ciq.com>
This commit is contained in:
Jonathon Anderson
2025-02-14 23:32:22 -07:00
parent 12f7cb4033
commit d96744afbd
2 changed files with 1 additions and 8 deletions

View File

@@ -21,14 +21,6 @@ func DHCP() (err error) {
wwlog.Warn("This system is not configured as a Warewulf DHCP controller")
return
}
if controller.DHCP.RangeStart == "" {
return fmt.Errorf("configuration is not defined: `dhcpd range start`")
}
if controller.DHCP.RangeEnd == "" {
return fmt.Errorf("configuration is not defined: `dhcpd range end`")
}
if controller.Warewulf.EnableHostOverlay() {
err = overlay.BuildHostOverlay()
if err != nil {