luci-proto-ipv6: augment reqprefix description to include prefix also
authorPaul Donald <newtwen+github@gmail.com>
Tue, 19 Nov 2024 15:29:14 +0000 (16:29 +0100)
committerPaul Donald <newtwen+github@gmail.com>
Sat, 30 Nov 2024 14:39:22 +0000 (15:39 +0100)
See https://github.com/openwrt/luci/issues/7397

to match changes in odhcp6c where one can now also specify the prefix

Signed-off-by: Paul Donald <newtwen+github@gmail.com>
protocols/luci-proto-ipv6/htdocs/luci-static/resources/protocol/dhcpv6.js

index ff242bb12c967cfd7c509bc85487d90a5cd9d10d..235bbe2cb3187ce1e3e0a56919cbbcfab7c949b8 100644 (file)
@@ -19,8 +19,9 @@ return network.registerProtocol('dhcpv6', {
                o.value('force', _('force', 'DHCPv6 address request mode'));
                o.value('none', _('disabled', 'DHCPv6 address request mode'));
                o.default = 'try';
-
-               o = s.taboption('general', form.Value, 'reqprefix', _('Request IPv6-prefix of length'));
+               o = s.taboption('general', form.Value, 'reqprefix', _('Request IPv6-prefix'),
+                       _('Either a prefix length hint (e.g. 56) only, whereby the operator selects the prefix, or specify a prefix also (e.g. %s)')
+                       .format('<code>2001:db8::/56</code>'));
                o.value('auto', _('Automatic'));
                o.value('no', _('disabled'));
                o.value('48');