summaryrefslogtreecommitdiffhomepage
path: root/modules/luci-mod-network/htdocs/luci-static/resources
diff options
context:
space:
mode:
authorMatthew Hagan <mnhagan88@gmail.com>2022-01-23 10:15:50 +0000
committerMatthew Hagan <mnhagan88@gmail.com>2022-02-09 17:46:26 +0000
commit72e76d5c5a66254bdd24e57cc91fdee956e24c9d (patch)
treebf98b24f92eb0979cb30a993322ec3b7ca78c2ca /modules/luci-mod-network/htdocs/luci-static/resources
parentd07642410a0a7500a8cb35898c41717809f75acb (diff)
luci-mod-network: add support for UID iprules
Allow user-specific routing policies to be defined in luci. A single UID or range of UIDs may be defined. Signed-off-by: Matthew Hagan <mnhagan88@gmail.com>
Diffstat (limited to 'modules/luci-mod-network/htdocs/luci-static/resources')
-rw-r--r--modules/luci-mod-network/htdocs/luci-static/resources/view/network/routes.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/modules/luci-mod-network/htdocs/luci-static/resources/view/network/routes.js b/modules/luci-mod-network/htdocs/luci-static/resources/view/network/routes.js
index c20574dbff..4b6e7b80a6 100644
--- a/modules/luci-mod-network/htdocs/luci-static/resources/view/network/routes.js
+++ b/modules/luci-mod-network/htdocs/luci-static/resources/view/network/routes.js
@@ -183,6 +183,11 @@ return view.extend({
o.datatype = 'uinteger';
o.placeholder = 10;
+ o = s.taboption('advanced', form.Value, 'uidrange', _('User identifier'));
+ o.modalonly = true;
+ o.datatype = 'string';
+ o.placeholder = '1000-1005';
+
o = s.taboption('advanced', form.Value, 'suppress_prefixlength', _('Prefix suppressor'));
o.modalonly = true;
o.datatype = (family == 6) ? 'ip6prefix' : 'ip4prefix';