Make DHCP range optional
Signed-off-by: Jonathon Anderson <janderson@ciq.com>
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.
|
- Return "" when NetDev.IpCIDR is empty.
|
||||||
- Updated `wwctl node export` to include node IDs. #1718
|
- Updated `wwctl node export` to include node IDs. #1718
|
||||||
- Don't add "default" profile to new nodes if it does not exist. #1721
|
- Don't add "default" profile to new nodes if it does not exist. #1721
|
||||||
|
- Make DHCP range optional.
|
||||||
|
|
||||||
### Removed
|
### Removed
|
||||||
|
|
||||||
|
|||||||
@@ -21,14 +21,6 @@ func DHCP() (err error) {
|
|||||||
wwlog.Warn("This system is not configured as a Warewulf DHCP controller")
|
wwlog.Warn("This system is not configured as a Warewulf DHCP controller")
|
||||||
return
|
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() {
|
if controller.Warewulf.EnableHostOverlay() {
|
||||||
err = overlay.BuildHostOverlay()
|
err = overlay.BuildHostOverlay()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|||||||
Reference in New Issue
Block a user