luci-mod-network: routes.js: enforce interface setting

Fixes: #6521
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
This commit is contained in:
Jo-Philipp Wich 2023-08-21 10:09:34 +02:00
parent 86f04d85fc
commit a6a428fe60

View file

@ -41,6 +41,7 @@ return view.extend({
o = s.taboption('general', widgets.NetworkSelect, 'interface', _('Interface'), _('Specifies the logical interface name of the parent (or master) interface this route belongs to')); o = s.taboption('general', widgets.NetworkSelect, 'interface', _('Interface'), _('Specifies the logical interface name of the parent (or master) interface this route belongs to'));
o.loopback = true; o.loopback = true;
o.nocreate = true; o.nocreate = true;
o.rmempty = false;
o = s.taboption('general', form.ListValue, 'type', _('Route type'), _('Specifies the route type to be created')); o = s.taboption('general', form.ListValue, 'type', _('Route type'), _('Specifies the route type to be created'));
o.modalonly = true; o.modalonly = true;