Merge pull request #1748 from anderbubble/dhcp-range-optional

Make DHCP range optional
This commit is contained in:
Christian Goll
2025-02-17 09:17:40 +01:00
committed by GitHub
2 changed files with 1 additions and 8 deletions

View File

@@ -38,6 +38,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
- Return "" when NetDev.IpCIDR is empty.
- Updated `wwctl node export` to include node IDs. #1718
- Don't add "default" profile to new nodes if it does not exist. #1721
- Make DHCP range optional.
### Removed

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 {