Skip to content

Kea lease incorrectly classified as "static" when reservation exists on a different subnet #10274

@dseven

Description

@dseven

Important notices

Before you add a new report, we ask you kindly to acknowledge the following:

Describe the bug

This applies to both IPv4 and IPv6.

When viewing Kea leases, the "Lease Type" column shows "static" if there exists a reservation matching the identity of the DHCP client (I suppose). It appears that this mapping does not take subnet into account, as in the case where a reservation for a given client exists on one subnet, any lease given to that client on a different subnet gets classified as "static", where it is actually "dynamic" (i.e. assigned from a pool, not a reservation).

To Reproduce

Steps to reproduce the behavior:

  1. Create a reservation (v4 or v6) based on DUID or MAC.
  2. Connect a client using that DUID or MAC to a different subnet that is also served by Kea DHCP and has a pool
  3. View leases
  4. Observe that a lease has been granted using a pool address, but is classified as "static"

Expected behavior

Leases should only be classified as "static" if a matching reservation exists on the same subnet

Screenshots

Image Image Image Image

Environment

OPNsense 26.1.6-amd64

Metadata

Metadata

Assignees

Labels

cleanupLow impact changes

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions