Excluded addresses are never offered, and scope validation and statistics account for them #167
Labels
No labels
agent
api-regen
agent
architect
agent
coder
agent
console-coder
agent
docs-writer
agent
mechanic
agent
protocol-coder
agent
storage-coder
area/api
area/ci
area/console
area/dhcp
area/dns
area/docs
area/packaging
area/process
area/storage
area/windows
kind
bug
kind
chore
kind
docs
kind
epic
kind
feature
kind
performance
kind
security
kind
test
priority
high
priority
low
priority
medium
resolution
duplicate
resolution
not-a-bug
resolution
wontfix
status
blocked
status
in-progress
status
needs-decision
status
needs-design
status
ready
theme
ad-samba-dns
theme
alternatives-benchmark
theme
console-toolchain
theme
later
theme
parity-devices
theme
parity-query
theme
post-release-fixes
theme
tracker-setup
theme
valkey
theme
windows-installer
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Blocks
Depends on
#166 DHCP scopes store exclusion ranges and a known-clients-only switch
lantea-one/ninlil
Reference
lantea-one/ninlil#167
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Why
An exclusion range is useless until allocation, validation and the pool figures honour it.
What changes
Dhcpv4LeaseAllocationService.ResolveCandidateAddressAsync(line 451, loop at 527-543): skip excluded addresses. Apply the same inDhcpv6LeaseAllocationServicefor address scopes.ResolveStickyAddressAsync, line 421) inside a new exclusion are not renewed past their lease.src/dotnet/src/Ninlil.Web/Controllers/DhcpScopesController.csvalidates ranges (parse, same family, inside the scope range, start ≤ end).src/dotnet/src/Ninlil.Dhcp.Server.Core/Statistics/DhcpScopeStatisticsService.cssubtracts excluded addresses from the pool size. The dashboard's pool-utilisation chart (#118, #124) reads this same service, so it shows excluded addresses as not free with no further change.Acceptance
src/dotnet/tests/Ninlil.Dhcp.Server.Core.Tests,Allocate_WithTheFirstAddressesExcluded_OffersTheFirstNonExcludedAddress.dotnet test src/dotnet/tests/Ninlil.Dhcp.Server.Core.Tests,dotnet test src/dotnet/tests/Ninlil.Web.Tests.Source
audit-feature-parity.md§2A #14; DEDUPE.md A4.