5 return network
.registerProtocol('dhcpv6', {
7 return _('DHCPv6 client');
10 getOpkgPackage: function() {
14 renderFormOptions: function(s
) {
15 var dev
= this.getL2Device() || this.getDevice(), o
;
17 o
= s
.taboption('general', form
.ListValue
, 'reqaddress', _('Request IPv6-address'));
20 o
.value('none', 'disabled');
23 o
= s
.taboption('general', form
.Value
, 'reqprefix', _('Request IPv6-prefix of length'));
24 o
.value('auto', _('Automatic'));
25 o
.value('no', _('disabled'));
33 o
= s
.taboption('advanced', form
.Flag
, 'defaultroute', _('Use default gateway'), _('If unchecked, no default route is configured'));
34 o
.default = o
.enabled
;
36 o
= s
.taboption('advanced', form
.DynamicList
, 'ip6prefix', _('Custom delegated IPv6-prefix'));
39 o
= s
.taboption('advanced', form
.Flag
, 'peerdns', _('Use DNS servers advertised by peer'), _('If unchecked, the advertised DNS server addresses are ignored'));
40 o
.default = o
.enabled
;
42 o
= s
.taboption('advanced', form
.DynamicList
, 'dns', _('Use custom DNS servers'));
43 o
.depends('peerdns', '0');
44 o
.datatype
= 'ipaddr';
47 o
= s
.taboption('advanced', form
.Value
, 'clientid', _('Client ID to send when requesting DHCP'));
48 o
.datatype
= 'hexstring';
50 o
= s
.taboption('advanced', form
.Value
, 'macaddr', _('Override MAC address'));
51 o
.datatype
= 'macaddr';
52 o
.placeholder
= dev
? (dev
.getMAC() || '') : '';
54 o
= s
.taboption('advanced', form
.Value
, 'mtu', _('Override MTU'));
55 o
.placeholder
= dev
? (dev
.getMTU() || '1500') : '1500';
56 o
.datatype
= 'max(9200)';