Merge pull request #1748 from anderbubble/dhcp-range-optional
Make DHCP range optional
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user