mirror of
https://github.com/openwrt/luci.git
synced 2025-12-22 01:44:35 +04:00
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:
committed by
Paul Donald
parent
70d89764e3
commit
790d58e4e6
@@ -43,6 +43,8 @@ const CBILeaseStatus = form.DummyValue.extend({
|
|||||||
E('th', { 'class': 'th' }, _('Hostname')),
|
E('th', { 'class': 'th' }, _('Hostname')),
|
||||||
E('th', { 'class': 'th' }, _('IPv4 address')),
|
E('th', { 'class': 'th' }, _('IPv4 address')),
|
||||||
E('th', { 'class': 'th' }, _('MAC address')),
|
E('th', { 'class': 'th' }, _('MAC address')),
|
||||||
|
E('th', { 'class': 'th' }, _('DUID')),
|
||||||
|
E('th', { 'class': 'th' }, _('IAID')),
|
||||||
E('th', { 'class': 'th' }, _('Remaining time'))
|
E('th', { 'class': 'th' }, _('Remaining time'))
|
||||||
]),
|
]),
|
||||||
E('tr', { 'class': 'tr placeholder' }, [
|
E('tr', { 'class': 'tr placeholder' }, [
|
||||||
@@ -255,6 +257,8 @@ return view.extend({
|
|||||||
host || '-',
|
host || '-',
|
||||||
lease.ipaddr,
|
lease.ipaddr,
|
||||||
vendor ? lease.macaddr + vendor : lease.macaddr,
|
vendor ? lease.macaddr + vendor : lease.macaddr,
|
||||||
|
lease.duid || '-',
|
||||||
|
lease.iaid || '-',
|
||||||
exp
|
exp
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|||||||
@@ -111,6 +111,7 @@ return baseclass.extend({
|
|||||||
E('th', { 'class': 'th' }, _('IPv4 address')),
|
E('th', { 'class': 'th' }, _('IPv4 address')),
|
||||||
E('th', { 'class': 'th' }, _('MAC address')),
|
E('th', { 'class': 'th' }, _('MAC address')),
|
||||||
E('th', { 'class': 'th' }, _('DUID')),
|
E('th', { 'class': 'th' }, _('DUID')),
|
||||||
|
E('th', { 'class': 'th' }, _('IAID')),
|
||||||
E('th', { 'class': 'th' }, _('Remaining time')),
|
E('th', { 'class': 'th' }, _('Remaining time')),
|
||||||
isReadonlyView ? E([]) : E('th', { 'class': 'th cbi-section-actions' }, _('Static Lease'))
|
isReadonlyView ? E([]) : E('th', { 'class': 'th cbi-section-actions' }, _('Static Lease'))
|
||||||
])
|
])
|
||||||
@@ -142,7 +143,8 @@ return baseclass.extend({
|
|||||||
host || '-',
|
host || '-',
|
||||||
lease.ipaddr,
|
lease.ipaddr,
|
||||||
vendor ? lease.macaddr + ` (${vendor})` : lease.macaddr,
|
vendor ? lease.macaddr + ` (${vendor})` : lease.macaddr,
|
||||||
lease.duid ? lease.duid : null,
|
lease.duid || '-',
|
||||||
|
lease.iaid || '-',
|
||||||
exp,
|
exp,
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user