dhcpd: skip empty disabled dhcpv4 config#8375
Conversation
|
One clarification after re-reading #8348 and the recent edge note: this PR is intentionally narrower than changing log level. The edge build now logs the empty disabled DHCPv4 validation failure at debug level, but the reset/empty disabled config still causes Disabled DHCPv4 configs that still contain saved address settings continue to go through the existing validation path, which preserves the current status behavior for configured-but-disabled DHCPv4 ranges. Rechecked locally before marking ready:
|
Updates #8348.
When DHCPv4 is disabled and its address fields are empty,
v4Createnow returns an unconfigured disabled server without validating the empty IPv4 addresses.Disabled but configured DHCPv4 settings still go through validation, so existing status output for saved disabled DHCPv4 ranges is preserved.
Tests:
go test ./internal/dhcpdmake go-checkNote:
make go-checkprints existinggovulncheckfindings for the pinned Go 1.26.2 standard library, but the target exits successfully.