diff options
author | Paul Dee <itsascambutmailmeanyway@gmail.com> | 2021-04-01 19:02:36 +0200 |
---|---|---|
committer | Paul Dee <itsascambutmailmeanyway@gmail.com> | 2021-04-01 22:03:34 +0200 |
commit | 504bdb23fbaff28cc31cc1dd2408a9f1cd5eddde (patch) | |
tree | 59df4badf4f8d731f081e3a46b6eb679612c18a3 /modules/luci-mod-network/htdocs/luci-static/resources/view | |
parent | 988c98bdc6b30a1d9fb17e1ba4444d0beb236b8a (diff) |
luci-mod-network: Introduce new RA and NDP params with help-text.
New: Router Advertisement parameters and accompanying help-text.
New: 3 additional NDP options and accompanying help-text.
Until now, some of the IPv6 settings are mysterious. They are now
clarified. The information is accessible to IPv6 beginners.
Signed-off-by: Paul Dee <itsascambutmailmeanyway@gmail.com>
Diffstat (limited to 'modules/luci-mod-network/htdocs/luci-static/resources/view')
-rw-r--r-- | modules/luci-mod-network/htdocs/luci-static/resources/view/network/interfaces.js | 55 |
1 files changed, 55 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 ed5ec82343..36b384fa2f 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 @@ -565,6 +565,50 @@ return view.extend({ so.value('relay', _('relay mode')); so.value('hybrid', _('hybrid mode')); + so = ss.taboption('ipv6', form.Value, 'ra_maxinterval', _('Max <abbr title="Router Advertisement">RA</abbr> interval'), _('Maximum time allowed \ + between sending unsolicited <abbr title="Router Advertisement, ICMPv6 Type 134">RA</abbr>. Default is 600 seconds (<code>600</code>).')); + so.optional = true; + so.default = '600'; + so.depends('ra', 'server'); + so.depends('ra', 'hybrid'); + so.depends('ra', 'relay'); + + + so = ss.taboption('ipv6', form.Value, 'ra_mininterval', _('Min <abbr title="Router Advertisement">RA</abbr> interval'), _('Minimum time allowed \ + between sending unsolicited <abbr title="Router Advertisement, ICMPv6 Type 134">RA</abbr>. Default is 200 seconds (<code>200</code>).')); + so.optional = true; + so.default = '200'; + so.depends('ra', 'server'); + so.depends('ra', 'hybrid'); + so.depends('ra', 'relay'); + + so = ss.taboption('ipv6', form.Value, 'ra_lifetime', _('<abbr title="Router Advertisement">RA</abbr> Lifetime'), _('Router Lifetime published \ + in <abbr title="Router Advertisement, ICMPv6 Type 134">RA</abbr> messages. Default is 1800 seconds (<code>1800</code>). \ + Max 9000 seconds.')); + so.optional = true; + so.default = '1800'; + so.depends('ra', 'server'); + so.depends('ra', 'hybrid'); + so.depends('ra', 'relay'); + + so = ss.taboption('ipv6', form.Value, 'ra_mtu', _('<abbr title="Router Advertisement">RA</abbr> MTU'), _('The <abbr title="Maximum Transmission Unit">MTU</abbr> \ + to be published in <abbr title="Router Advertisement, ICMPv6 Type 134">RA</abbr> messages. Default is 0 (<code>0</code>).\ + Min 1280.')); + so.optional = true; + so.default = '0'; + so.depends('ra', 'server'); + so.depends('ra', 'hybrid'); + so.depends('ra', 'relay'); + + so = ss.taboption('ipv6', form.Value, 'ra_hoplimit', _('<abbr title="Router Advertisement">RA</abbr> Hop Limit'), _('The maximum hops \ + to be published in <abbr title="Router Advertisement">RA</abbr> messages.<br>Default is 0 (<code>0</code>), meaning unspecified.\ + Max 255.')); + so.optional = true; + so.default = '0'; + so.depends('ra', 'server'); + so.depends('ra', 'hybrid'); + so.depends('ra', 'relay'); + so = ss.taboption('ipv6', form.ListValue, 'ra_management', _('DHCPv6-Mode'), _('Default is stateless + stateful<br />\ <ul style="list-style-type:none;">\ <li><strong>stateless</strong>: Router advertises prefixes, host uses <abbr title="Stateless Address Auto Config">SLAAC</abbr> \ @@ -611,6 +655,17 @@ return view.extend({ so.value('relay', _('relay mode')); so.value('hybrid', _('hybrid mode')); + so = ss.taboption('ipv6', form.Flag, 'ndproxy_routing', _('Learn routes from NDP'), _('Default is on.')); + so.default = '1'; + + so = ss.taboption('ipv6', form.Flag, 'ndproxy_slave', _('NDP-Proxy slave'), _('Set interface as NDP-Proxy external slave. Default is off.')); + + so = ss.taboption('ipv6', form.DynamicList, 'ndproxy_static', _('Static NDP-Proxy prefixes')); + + so = ss.taboption('ipv6', form.Flag , 'master', _('Master'), _('Set this interface as master for the dhcpv6 relay.')); + so.depends('dhcpv6', 'relay'); + so.depends('dhcpv6', 'hybrid'); + so = ss.taboption('ipv6', form.Flag , 'master', _('Master'), _('Set this interface as master for the dhcpv6 relay.')); so.depends('dhcpv6', 'relay'); so.depends('dhcpv6', 'hybrid'); |