1 L.network.Protocol.extend({
3 description: L.tr('DHCPv6 client / IPv6 autoconfig'),
7 populateForm: function(section, iface)
9 section.taboption('general', L.cbi.ListValue, 'reqaddress', {
10 caption: L.tr('Request IPv6 address'),
12 }).value('try', L.tr('Attempt DHCPv6, fallback to RA'))
13 .value('force', L.tr('Force DHCPv6'))
14 .value('none', L.tr('RA only'));
16 section.taboption('general', L.cbi.ComboBox, 'reqprefix', {
17 caption: L.tr('Request IPv6 prefix'),
18 description: L.tr('Specifies the requested prefix length'),
20 datatype: 'or("auto", "no", range(32, 64))'
21 }).value('auto', L.tr('automatic'))
22 .value('no', L.tr('disabled'))
23 .value('48').value('52').value('56').value('60').value('64');
25 section.taboption('general', L.cbi.InputValue, 'ip6prefix', {
26 caption: L.tr('Custom prefix'),
27 description: L.tr('Specifies an additional custom IPv6 prefix for distribution to clients'),
32 section.taboption('advanced', L.cbi.CheckboxValue, 'defaultroute', {
33 caption: L.tr('Default route'),
34 description: L.tr('Create IPv6 default route via tunnel'),
39 section.taboption('advanced', L.cbi.CheckboxValue, 'peerdns', {
40 caption: L.tr('Use DNS'),
41 description: L.tr('Use DNS servers advertised by DHCPv6'),
46 section.taboption('advanced', L.cbi.DynamicList, 'dns', {
47 caption: L.tr('Custom DNS'),
48 description: L.tr('Use custom DNS servers instead of DHCPv6 ones'),
51 }).depends('peerdns', false);
53 section.taboption('advanced', L.cbi.InputValue, 'clientid', {
54 caption: L.tr('Client ID'),
55 description: L.tr('Client ID to send when requesting DHCPv6'),