From 504bdb23fbaff28cc31cc1dd2408a9f1cd5eddde Mon Sep 17 00:00:00 2001 From: Paul Dee Date: Thu, 1 Apr 2021 19:02:36 +0200 Subject: 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 --- .../resources/view/network/interfaces.js | 55 ++++++++++++++++++++++ 1 file changed, 55 insertions(+) (limited to 'modules/luci-mod-network/htdocs/luci-static') 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 RA interval'), _('Maximum time allowed \ + between sending unsolicited RA. Default is 600 seconds (600).')); + 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 RA interval'), _('Minimum time allowed \ + between sending unsolicited RA. Default is 200 seconds (200).')); + 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', _('RA Lifetime'), _('Router Lifetime published \ + in RA messages. Default is 1800 seconds (1800). \ + 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', _('RA MTU'), _('The MTU \ + to be published in RA messages. Default is 0 (0).\ + 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', _('RA Hop Limit'), _('The maximum hops \ + to be published in RA messages.
Default is 0 (0), 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
\