luci-mod-network: add master option
authorAnsuel Smith <ansuelsmth@gmail.com>
Tue, 24 Sep 2019 15:56:41 +0000 (17:56 +0200)
committerAnsuel Smith <ansuelsmth@gmail.com>
Tue, 24 Sep 2019 17:10:11 +0000 (19:10 +0200)
Adds option to set interface as master in dhcpv6 relay mode.

Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
modules/luci-mod-network/htdocs/luci-static/resources/view/network/interfaces.js

index b49d36d464a199dbe7125473c0b69e110d6dcc9f..bfff2575bd90ea4a49fca8e4aa50084f4e9c37ab 100644 (file)
@@ -591,6 +591,10 @@ return L.view.extend({
                                        so.value('relay', _('relay mode'));
                                        so.value('hybrid', _('hybrid mode'));
 
+                                       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.ListValue, 'ra_management', _('DHCPv6-Mode'), _('Default is stateless + stateful'));
                                        so.value('0', _('stateless'));
                                        so.value('1', _('stateless + stateful'));