From: David Härdeman Date: Sun, 30 Nov 2025 20:44:20 +0000 (+0100) Subject: luci-mod-network,-status: expose DUID/IAID for DHCPv4 X-Git-Url: http://git.openwrt.org/?a=commitdiff_plain;h=790d58e4e6688ebd4982ba250104913f0a57efcf;p=project%2Fluci.git luci-mod-network,-status: expose DUID/IAID for DHCPv4 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 --- 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, ];