From 9070cfd1a4d27e66649ab71ca0f86f7cb52b87b7 Mon Sep 17 00:00:00 2001 From: John Kohl Date: Sat, 24 Jun 2023 22:33:26 -0400 Subject: [PATCH] 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 --- .../htdocs/luci-static/resources/view/network/interfaces.js | 4 ++++ 1 file changed, 4 insertions(+) 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', _('PD 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 Local IPv6 DNS server option is disabled.')); -- 2.30.2