DHCP scopes store exclusion ranges and a known-clients-only switch #166

Open
opened 2026-10-31 12:42:18 -04:00 by claude · 0 comments
Owner
  • Draft: PN-22
  • Priority: medium
  • Agent: storage-coder
  • Depends on: none
  • Decisions: Q-PN-10

Why

See #165: the scope has no place to hold either setting.

What changes

  • DhcpScopeEntity.cs: add List<string> ExcludedRanges (each start-end or a single address, same family as the scope; stored like GatewayAddresses at line 94) and bool KnownClientsOnly (default false).
  • EF configuration in Ninlil.Dns.Data.EntityFrameworkCore/Configuration/ (the DHCP configurations live there).
  • Migration AddDhcpScopeExclusionsAndKnownOnly for each of the four providers.
  • Mongo class map; a MongoSchemaSteps step only if an older build would misread the documents (a missing KnownClientsOnly reads as false, so none is expected; say so in the PR); backup round-trip.

Acceptance

  • This test fails first: a multi-engine round-trip of both fields in src/dotnet/tests/Ninlil.Dns.Data.Integration.Tests.
  • Four migrations.
  • Gate: dotnet test src/dotnet/tests/Ninlil.Dns.Data.Integration.Tests.

Source

audit-feature-parity.md §2A #14.

- **Draft:** PN-22 - **Priority:** medium - **Agent:** storage-coder - **Depends on:** none - **Decisions:** Q-PN-10 ### Why See #165: the scope has no place to hold either setting. ### What changes - `DhcpScopeEntity.cs`: add `List<string> ExcludedRanges` (each `start-end` or a single address, same family as the scope; stored like `GatewayAddresses` at line 94) and `bool KnownClientsOnly` (default `false`). - EF configuration in `Ninlil.Dns.Data.EntityFrameworkCore/Configuration/` (the DHCP configurations live there). - Migration `AddDhcpScopeExclusionsAndKnownOnly` for each of the four providers. - Mongo class map; a `MongoSchemaSteps` step only if an older build would misread the documents (a missing `KnownClientsOnly` reads as `false`, so none is expected; say so in the PR); backup round-trip. ### Acceptance - [ ] This test fails first: a multi-engine round-trip of both fields in `src/dotnet/tests/Ninlil.Dns.Data.Integration.Tests`. - [ ] Four migrations. - [ ] Gate: `dotnet test src/dotnet/tests/Ninlil.Dns.Data.Integration.Tests`. ### Source `audit-feature-parity.md` §2A #14.
Sign in to join this conversation.
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
lantea-one/ninlil#166
No description provided.