From d96744afbd9d4f2dafc6390f71a4488542a14f1f Mon Sep 17 00:00:00 2001 From: Jonathon Anderson Date: Fri, 14 Feb 2025 23:32:22 -0700 Subject: [PATCH] Make DHCP range optional Signed-off-by: Jonathon Anderson --- CHANGELOG.md | 1 + internal/pkg/configure/dhcp.go | 8 -------- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 02de4550..5824aec8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/internal/pkg/configure/dhcp.go b/internal/pkg/configure/dhcp.go index 95f6c816..b74e6138 100644 --- a/internal/pkg/configure/dhcp.go +++ b/internal/pkg/configure/dhcp.go @@ -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 {