summaryrefslogtreecommitdiffhomepage
path: root/modules/luci-mod-network/htdocs/luci-static
diff options
context:
space:
mode:
authorJohn Kohl <jtk.git@bostonpog.org>2023-06-24 22:33:26 -0400
committerChristian Marangi <ansuelsmth@gmail.com>2023-07-05 20:56:35 +0200
commit9070cfd1a4d27e66649ab71ca0f86f7cb52b87b7 (patch)
tree359817025e661a23d12791d0d9bccfe49f849645 /modules/luci-mod-network/htdocs/luci-static
parent886dade9bcb6c6e31f347ce427f4d1e1048af843 (diff)
luci-mod-network: interfaces.js: add dhcpv6_pd_min_len support
Add support for setting dhcpv6_pd_min_len, which enforces a floor on the IPv6 prefix delegation length, so the administrator can conserve IPv6 address space on an interface. Signed-off-by: John Kohl <jtk.git@bostonpog.org>
Diffstat (limited to 'modules/luci-mod-network/htdocs/luci-static')
-rw-r--r--modules/luci-mod-network/htdocs/luci-static/resources/view/network/interfaces.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/luci-mod-network/htdocs/luci-static/resources/view/network/interfaces.js b/modules/luci-mod-network/htdocs/luci-static/resources/view/network/interfaces.js
index 161be918e7..82bf269e8a 100644
--- a/modules/luci-mod-network/htdocs/luci-static/resources/view/network/interfaces.js
+++ b/modules/luci-mod-network/htdocs/luci-static/resources/view/network/interfaces.js
@@ -909,6 +909,10 @@ return view.extend({
_('Forward DHCPv6 messages between the designated master interface and downstream interfaces.'));
so.value('hybrid', _('hybrid mode'), ' ');
+ so = ss.taboption('ipv6', form.Value, 'dhcpv6_pd_min_len', _('<abbr title="Prefix Delegation">PD</abbr> minimum length'),
+ _('Configures the minimum delegated prefix length assigned to a requesting downstream router, potentially overriding a requested prefix length. If left unspecified, the device will assign the smallest available prefix greater than or equal to the requested prefix.'));
+ so.datatype = 'range(1,62)';
+ so.depends('dhcpv6', 'server');
so = ss.taboption('ipv6', form.DynamicList, 'dns', _('Announced IPv6 DNS servers'),
_('Specifies a fixed list of IPv6 DNS server addresses to announce via DHCPv6. If left unspecified, the device will announce itself as IPv6 DNS server unless the <em>Local IPv6 DNS server</em> option is disabled.'));