luci-proto-qmi: add PDP type option
authorNicholas Smith <nicholas.smith@telcoantennas.com.au>
Fri, 11 Oct 2019 00:47:25 +0000 (10:47 +1000)
committerNicholas Smith <nicholas.smith@telcoantennas.com.au>
Wed, 23 Oct 2019 04:31:19 +0000 (14:31 +1000)
Signed-off-by: Nicholas Smith <nicholas.smith@telcoantennas.com.au>
protocols/luci-proto-qmi/htdocs/luci-static/resources/protocol/qmi.js

index eeda91f6e61d7c6b2aea147affba84359d8fb53e..735eefabdf969f030dd802bcfe15d44e49c376c5 100644 (file)
@@ -97,5 +97,11 @@ return network.registerProtocol('qmi', {
                o = s.taboption('advanced', form.Value, 'mtu', _('Override MTU'));
                o.placeholder = dev ? (dev.getMTU() || '1500') : '1500';
                o.datatype    = 'max(9200)';
+               
+               o = s.taboption('general', form.ListValue, 'pdptype', _('PDP Type'));
+               o.value('ipv4v6', 'IPv4/IPv6');
+               o.value('ipv4', 'IPv4');
+               o.value('ipv6', 'IPv6');
+               o.default = 'ipv4v6';
        }
 });