DHCP leases refer to their scope by id, so renaming a scope keeps its leases #58
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 milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Blocks
#170 An operator can turn a DHCP lease into a reservation with one call
lantea-one/ninlil
Reference
lantea-one/ninlil#58
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
LeaseEntity.ScopeName(src/dotnet/src/Ninlil.Dhcp.Data.Abstractions/Entity/LeaseEntity.cs:25) links a lease to its scope by name. Reservations and custom options already useScopeId. The owner routed the id link to a post-release issue (OD-B13-b).DhcpDnsRegistrationServicelooks the scope up by the lease's name (src/dotnet/src/Ninlil.Dhcp.Server.DnsIntegration/DhcpDnsRegistrationService.cs:102-105), so a renamed scope also stops DNS registration for its leases.What changes
ScopeId(Guid) toLeaseEntityand its configuration.ScopeName(amigrationBuilder.SqlinUp/Down, as*ConvertDhcpLeaseTimesToTicks.csdoes).MongoSchemaSteps.Knownstep.Ninlil.Dhcp.Server.CoreandDhcpDnsRegistrationService.ScopeNamestays as a display copy is the storage-coder's call: keep it only if a reader needs it. Say so in the PR.api-regenissue follows.ScopeIdand depends on this issue; #115 counts active leases per scope id once this lands (DEDUPE.md P2). #188 also editsDhcpDnsRegistrationService; whichever lands second rebases.Acceptance
src/dotnet/tests/Ninlil.Dhcp.Server.Core.Tests,src/dotnet/tests/Ninlil.Dhcp.Server.DnsIntegration.Tests,src/dotnet/tests/Ninlil.Dhcp.Data.EntityFrameworkCore.Testsandsrc/dotnet/tests/Ninlil.Dns.Data.Integration.Tests(all engines, Docker) pass.Source
bughunt-plan.md:522(from the B13 design, OD-B13-b).Ghost referenced this issue2026-11-05 03:44:04 -05:00