diff --git a/protocols/luci-proto-ipv6/htdocs/luci-static/resources/protocol/dhcpv6.js b/protocols/luci-proto-ipv6/htdocs/luci-static/resources/protocol/dhcpv6.js index ed2d399900..c072155fef 100644 --- a/protocols/luci-proto-ipv6/htdocs/luci-static/resources/protocol/dhcpv6.js +++ b/protocols/luci-proto-ipv6/htdocs/luci-static/resources/protocol/dhcpv6.js @@ -38,7 +38,18 @@ return network.registerProtocol('dhcpv6', { o.default = '1'; o.rmempty = false; + o = s.taboption('advanced', form.ListValue, 'sendclientid', _('Preferred client ID'), + _('Selects the DUID to send when requesting DHCPv6.') + '
' + + _('Automatic uses the client ID configured below, else the default DUID of this device, else a DUID-LL derived from the MAC address of this interface.') + '
' + + _('Default DUID always uses the default DUID of this device, even if a client ID is configured below.') + '
' + + _('Hardware address always uses a DUID-LL derived from the MAC address of this interface.')); + o.value('auto', _('Automatic')); + o.value('global', _('Default DUID')); + o.value('hardware', _('Hardware address')); + o.default = 'auto'; + o = s.taboption('advanced', form.Value, 'clientid', _('Client ID to send when requesting DHCP')); o.datatype = 'hexstring'; + o.depends('sendclientid', 'auto'); } });