DHCP leases refer to their scope by id, so renaming a scope keeps its leases #279
No reviewers
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.
Dependencies
No dependencies set
Reference
lantea-one/ninlil!279
Loading…
Reference in a new issue
No description provided.
Delete branch "feature/58-lease-scope-id"
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?
A DHCP lease now refers to its scope by id (
LeaseEntity.ScopeId), not by name. Renaming a scope therefore keeps its leases: the engine renews them and their DNS records stay registered.AddDhcpLeaseScopeIdmigration that backfillsScopeIdfromScopeName.(ScopeId, ClientIdentifier)and(ScopeId, IpAddress).DhcpLeaseScopeIdBackfillstep inMongoSchemaSteps.Known.ScopeNamestays, as a display copy only. The REST lease model, the lease list ordering and the name of a deleted scope still read it. Nothing looks up a lease or scope by it any more.BackupLegacyFixups.LinkLeasesToScopes). This runs before anything is wiped.Tests:
Ninlil.Dns.Data.Integration.Tests(Docker, all engines) passes 499 tests. The wholeNinlil.Web.Testsproject passes 2038.Closes #58
🤖 Generated with Claude Code
https://claude.ai/code/session_01T33E3pmQvqkTriyQUMNUTK