summaryrefslogtreecommitdiffhomepage
path: root/protocols/luci-proto-qmi/htdocs
diff options
context:
space:
mode:
authorFlorian Eckert <fe@dev.tdt.de>2020-11-06 11:51:12 +0100
committerFlorian Eckert <fe@dev.tdt.de>2020-11-06 11:51:15 +0100
commitfa702c0387dd09a43b1d447e627d118f782ac767 (patch)
tree3fc52a159d2cfdbe924900d294c4b0ff7799d51e /protocols/luci-proto-qmi/htdocs
parent1c482dde3d33f79fd7c4e8f131f210b60bc4223c (diff)
luci-proto-qmi: add missing proto default options
This change add the following missing default options. - defaulroute - peerdns - metric Signed-off-by: Florian Eckert <fe@dev.tdt.de>
Diffstat (limited to 'protocols/luci-proto-qmi/htdocs')
-rw-r--r--protocols/luci-proto-qmi/htdocs/luci-static/resources/protocol/qmi.js17
1 files changed, 17 insertions, 0 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..6a8c2b6ac5 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
@@ -103,5 +103,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;
+
}
});