Skip to content

Services: Kea DHCPv4/6: Build reservation status from control socket output, so it matches the scope of individual subnet#10276

Merged
Monviech merged 4 commits into
masterfrom
kea-here-we-lease-again
May 9, 2026
Merged

Services: Kea DHCPv4/6: Build reservation status from control socket output, so it matches the scope of individual subnet#10276
Monviech merged 4 commits into
masterfrom
kea-here-we-lease-again

Conversation

@Monviech
Copy link
Copy Markdown
Member

@Monviech Monviech commented May 8, 2026

Important notices

Before you submit a pull request, we ask you kindly to acknowledge the following:

If AI was used, please disclose:

  • Model used:
  • Extent of AI involvement:

Describe the problem

Problem described in issue.


Describe the proposed solution

Solution is to use the API to build all lease and reservation related concerns. With this change it will finally be "perfect".


Related issue

#10274

@Monviech Monviech requested review from fichtner and swhite2 May 8, 2026 14:46
@Monviech Monviech self-assigned this May 8, 2026
@Monviech Monviech added the cleanup Low impact changes label May 8, 2026
@Monviech Monviech changed the title Kea here we lease again Services: Kea DHCPv4/6: Build reservation status from control socket output, so it matches the scope of individual subnet May 8, 2026
Copy link
Copy Markdown
Member

@fichtner fichtner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if it works fine. Less controller fiddling is good.

…output, so it matches the scope of individual subnets as well. Add client-id since it's relevant for IPv4 leases as well in default configuration.

We return an array now, change frontend detection if it's dynamic or static lease

Missed a closing bracket

Typo in client_id

Remove unused imports in LeasesController

Add comment to build_reserved_matches() to explain why the subnet-id logic exists now
@Monviech Monviech force-pushed the kea-here-we-lease-again branch from 85af173 to 180fcb4 Compare May 8, 2026 15:33
@Monviech
Copy link
Copy Markdown
Member Author

Monviech commented May 9, 2026

Tested by me and @dseven and stuff is working as expected now.

@Monviech Monviech merged commit 9b93f84 into master May 9, 2026
@Monviech Monviech deleted the kea-here-we-lease-again branch May 9, 2026 12:17
fichtner pushed a commit that referenced this pull request May 11, 2026
…output, so it matches the scope of individual subnet (#10276)

* Services: Kea DHCPv4/6: Build reservation status from control socket output, so it matches the scope of individual subnets as well. Add client-id since it's relevant for IPv4 leases as well in default configuration.

We return an array now, change frontend detection if it's dynamic or static lease

Missed a closing bracket

Typo in client_id

Remove unused imports in LeasesController

Add comment to build_reserved_matches() to explain why the subnet-id logic exists now

* Add state as well, helpful for troubleshooting

* Add a state formatter to convert number status into their documented meaning

* Some data-width micro management

(cherry picked from commit 9b93f84)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cleanup Low impact changes

Development

Successfully merging this pull request may close these issues.

2 participants