From 790d58e4e6688ebd4982ba250104913f0a57efcf Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20H=C3=A4rdeman?= Date: Sun, 30 Nov 2025 21:44:20 +0100 Subject: [PATCH] luci-mod-network,-status: expose DUID/IAID for DHCPv4 MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit We already show the DUID in one table (in the overview), this makes the tables under the "DHCP > Leases" tab consistent with the overview, and exposes the DUID/IAID in both. Signed-off-by: David Härdeman --- .../htdocs/luci-static/resources/view/network/dhcp.js | 4 ++++ .../luci-static/resources/view/status/include/40_dhcp.js | 4 +++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/modules/luci-mod-network/htdocs/luci-static/resources/view/network/dhcp.js b/modules/luci-mod-network/htdocs/luci-static/resources/view/network/dhcp.js index e4ae4567eb..530d96cb0e 100644 --- a/modules/luci-mod-network/htdocs/luci-static/resources/view/network/dhcp.js +++ b/modules/luci-mod-network/htdocs/luci-static/resources/view/network/dhcp.js @@ -43,6 +43,8 @@ const CBILeaseStatus = form.DummyValue.extend({ E('th', { 'class': 'th' }, _('Hostname')), E('th', { 'class': 'th' }, _('IPv4 address')), E('th', { 'class': 'th' }, _('MAC address')), + E('th', { 'class': 'th' }, _('DUID')), + E('th', { 'class': 'th' }, _('IAID')), E('th', { 'class': 'th' }, _('Remaining time')) ]), E('tr', { 'class': 'tr placeholder' }, [ @@ -255,6 +257,8 @@ return view.extend({ host || '-', lease.ipaddr, vendor ? lease.macaddr + vendor : lease.macaddr, + lease.duid || '-', + lease.iaid || '-', exp ]; diff --git a/modules/luci-mod-status/htdocs/luci-static/resources/view/status/include/40_dhcp.js b/modules/luci-mod-status/htdocs/luci-static/resources/view/status/include/40_dhcp.js index 3cbc0c31ae..990b16704b 100644 --- a/modules/luci-mod-status/htdocs/luci-static/resources/view/status/include/40_dhcp.js +++ b/modules/luci-mod-status/htdocs/luci-static/resources/view/status/include/40_dhcp.js @@ -111,6 +111,7 @@ return baseclass.extend({ E('th', { 'class': 'th' }, _('IPv4 address')), E('th', { 'class': 'th' }, _('MAC address')), E('th', { 'class': 'th' }, _('DUID')), + E('th', { 'class': 'th' }, _('IAID')), E('th', { 'class': 'th' }, _('Remaining time')), isReadonlyView ? E([]) : E('th', { 'class': 'th cbi-section-actions' }, _('Static Lease')) ]) @@ -142,7 +143,8 @@ return baseclass.extend({ host || '-', lease.ipaddr, vendor ? lease.macaddr + ` (${vendor})` : lease.macaddr, - lease.duid ? lease.duid : null, + lease.duid || '-', + lease.iaid || '-', exp, ]; -- 2.30.2