summaryrefslogtreecommitdiffhomepage
path: root/protocols/luci-proto-qmi
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/luci-proto-qmi')
-rw-r--r--protocols/luci-proto-qmi/htdocs/luci-static/resources/protocol/qmi.js23
1 files changed, 21 insertions, 2 deletions
diff --git a/protocols/luci-proto-qmi/htdocs/luci-static/resources/protocol/qmi.js b/protocols/luci-proto-qmi/htdocs/luci-static/resources/protocol/qmi.js
index d496808b0a..7c9e72cb1a 100644
--- a/protocols/luci-proto-qmi/htdocs/luci-static/resources/protocol/qmi.js
+++ b/protocols/luci-proto-qmi/htdocs/luci-static/resources/protocol/qmi.js
@@ -54,7 +54,8 @@ return network.registerProtocol('qmi', {
renderFormOptions: function(s) {
var dev = this.getL3Device() || this.getDevice(), o;
- o = s.taboption('general', form.Value, 'device', _('Modem device'));
+ o = s.taboption('general', form.Value, '_modem_device', _('Modem device'));
+ o.ucioption = 'device';
o.rmempty = false;
o.load = function(section_id) {
return callFileList('/dev/').then(L.bind(function(devices) {
@@ -86,7 +87,8 @@ return network.registerProtocol('qmi', {
o.password = true;
if (L.hasSystemFeature('ipv6')) {
- o = s.taboption('advanced', form.Flag, 'ipv6', _('Enable IPv6 negotiation'));
+ o = s.taboption('advanced', form.Flag, 'ppp_ipv6', _('Enable IPv6 negotiation'));
+ o.ucioption = 'ipv6';
o.default = o.disabled;
}
@@ -103,5 +105,22 @@ return network.registerProtocol('qmi', {
o.value('ipv4', 'IPv4');
o.value('ipv6', 'IPv6');
o.default = 'ipv4v6';
+
+ o = s.taboption('advanced', form.Flag, 'defaultroute',
+ _('Use default gateway'),
+ _('If unchecked, no default route is configured'));
+ o.default = o.enabled;
+
+ o = s.taboption('advanced', form.Value, 'metric',
+ _('Use gateway metric'));
+ o.placeholder = '0';
+ o.datatype = 'uinteger';
+ o.depends('defaultroute', '1');
+
+ o = s.taboption('advanced', form.Flag, 'peerdns',
+ _('Use DNS servers advertised by peer'),
+ _('If unchecked, the advertised DNS server addresses are ignored'));
+ o.default = o.enabled;
+
}
});