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 <david@hardeman.nu>
This commit is contained in:
David Härdeman
2025-11-30 21:44:20 +01:00
committed by Paul Donald
parent 70d89764e3
commit 790d58e4e6
2 changed files with 7 additions and 1 deletions

View File

@@ -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
];

View File

@@ -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,
];