Skip to content

Conversation

@bnaecker
Copy link
Collaborator

@bnaecker bnaecker commented Oct 25, 2025

  • Rewrite the NextExternalIp query to allow IPv6 address allocations. This uses queries more like the existing "next-item" queries based on a self-join, where we're joining the existing address with those addresses plus-one, and taking the first free one.
  • Handle a few more failure-cases from the new query to ensure we detect address exhaustion, reallocation, and so on. All the existing tests continue to pass.
  • Add expectorate / explain "tests" for the new queries
  • Add a few new tests, some specifically for IPv6 address allocations
  • Closes Want database query for external IPv6 address allocation #9245

@bnaecker bnaecker marked this pull request as draft October 25, 2025 03:18
@bnaecker bnaecker force-pushed the external-ipv6-address-queries branch from 23b7634 to 4f1b708 Compare October 26, 2025 01:39
- Rewrite the `NextExternalIp` query to allow IPv6 address allocations.
  This uses queries more like the existing "next-item" queries based on
  a self-join, where we're joining the existing address with those
  addresses plus-one, and taking the first free one.
- Handle a few more failure-cases from the new query to ensure we detect
  address exhaustion, reallocation, and so on. All the existing tests
  continue to pass.
- Add expectorate / explain "tests" for the new queries
- Add a few new tests, some specifically for IPv6 address allocations
  and the details / corner cases of the new query structure
- Closes #9245
@bnaecker bnaecker force-pushed the external-ipv6-address-queries branch from 4f1b708 to dc77103 Compare October 26, 2025 02:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Want database query for external IPv6 address allocation

1 participant