summaryrefslogtreecommitdiffhomepage
path: root/modules
diff options
context:
space:
mode:
authorFlorian Eckert <fe@dev.tdt.de>2021-09-27 18:27:10 +0200
committerGitHub <noreply@github.com>2021-09-27 18:27:10 +0200
commit7db926f4384802bb24806f60508acbdc3f15fec5 (patch)
tree55abd526828765e595b5d4ad023eb54cdfe57de1 /modules
parent0b49ed45c6e9f4bc10abdcea392125aec3794e58 (diff)
parent22296fb07276159f6d1dae719f32920ad52d5873 (diff)
Merge pull request #5378 from vgaetera/dhcpv6-sourcefilter
luci-mod-network: support network.interface.sourcefilter
Diffstat (limited to 'modules')
-rw-r--r--modules/luci-mod-network/htdocs/luci-static/resources/view/network/interfaces.js5
1 files changed, 5 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 1ce7567afc..6aad8d1083 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
@@ -952,6 +952,11 @@ return view.extend({
for (var i = 0; i < rtTables.length; i++)
o.value(rtTables[i][1], '%s (%d)'.format(rtTables[i][1], rtTables[i][0]));
+ if (protoval == 'dhcpv6') {
+ o = nettools.replaceOption(s, 'advanced', form.Flag, 'sourcefilter', _('IPv6 source routing'), _('Automatically handle multiple uplink interfaces using source-based policy routing.'));
+ o.default = o.enabled;
+ }
+
o = nettools.replaceOption(s, 'advanced', form.Flag, 'delegate', _('Delegate IPv6 prefixes'), _('Enable downstream delegation of IPv6 prefixes available on this interface'));
o.default = o.enabled;