Skip to content

luci-mod-dashboard: show DHCPv6 leases in the LAN widget - #9239

Open
Alphix wants to merge 1 commit into
openwrt:masterfrom
Alphix:dashboard-dhcpv6-leases
Open

Alphix wants to merge 1 commit into
openwrt:masterfrom
Alphix:dashboard-dhcpv6-leases

Conversation

@Alphix

@Alphix Alphix commented Nov 11, 2026

Copy link
Copy Markdown
Contributor

The DHCP devices widget only showed DHCPv4 leases. This also includes the DHCPv6 leases,
merged per device like the wireless clients widget does it: one row per MAC address, with
all IPv4 and IPv6 addresses in the "IP Address" column (delegated prefixes with their
prefix length).

DHCPv6 leases are matched to devices by the MAC address which rpcd derives from
DUID-LL/-LLT DUIDs; DHCPv6 leases with other DUIDs get a row of their own. The card now
shows the number of DHCPv4 and DHCPv6 leases below the number of devices.

This is independent of #9238, it works with the current getDHCPLeases output.

  • This PR is not from my main or master branch 💩, but a separate branch ✅
  • Each commit has a valid ✒️ Signed-off-by: <my@email.address> row (via git commit --signoff)
  • Each commit and PR title has a valid 📝 <package name>: title first line subject for packages
  • Incremented 🆙 any PKG_VERSION in the Makefile
  • Tested on: (x86/64 under QEMU, master, Chrome) ✅
  • ( Preferred ) Screenshot or mp4 of changes:
  • Description: (describe the changes proposed in this PR)

@Alphix

Alphix commented Nov 11, 2026

Copy link
Copy Markdown
Contributor Author

Screenshots:

image

And:

image

@Alphix
Alphix marked this pull request as ready for review November 11, 2026 23:45

@openwrt-ai openwrt-ai left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Reviewed 1 new commit; 1 inline finding below.


Generated by Claude Code

The DHCP devices widget only showed DHCPv4 leases. Also include the
DHCPv6 leases, merged per device like the wireless clients widget does
it: one row per MAC address, with all IPv4 and IPv6 addresses in the
"IP Address" column (delegated prefixes with their prefix length).

DHCPv6 leases are matched to devices by the MAC address which rpcd
derives from DUID-LL/-LLT DUIDs; DHCPv6 leases with other DUIDs get a
row of their own. The card now shows the number of DHCPv4 and DHCPv6
leases below the number of devices.

Signed-off-by: David Härdeman <david@hardeman.nu>
@Alphix
Alphix force-pushed the dashboard-dhcpv6-leases branch from 1990718 to 66b48e0 Compare November 12, 2026 17:59

@openwrt-ai openwrt-ai left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Reviewed 1 new commit; no new issues found.


Generated by Claude Code

This branch has not been deployed

No deployments
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.

2 participants