diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2015-11-11 10:15:33 +0100 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2015-11-11 10:15:33 +0100 |
commit | 1cb3adb619bdd876867f4c4da615ea850464e711 (patch) | |
tree | e63ee06e25453c0ec951b408cda7434c614fb657 /applications | |
parent | 2258d3de253965862a4648ebb4528df150a27b79 (diff) | |
parent | a948f4c77e6f403c71b09559ceffab8fafc210d5 (diff) |
Merge pull request #396 from fanthos/master
luci-app-qos: Add custom QOS classes to luci dropdown list
Diffstat (limited to 'applications')
-rw-r--r-- | applications/luci-app-qos/luasrc/model/cbi/qos/qos.lua | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/applications/luci-app-qos/luasrc/model/cbi/qos/qos.lua b/applications/luci-app-qos/luasrc/model/cbi/qos/qos.lua index a8ea57e311..177b17b07e 100644 --- a/applications/luci-app-qos/luasrc/model/cbi/qos/qos.lua +++ b/applications/luci-app-qos/luasrc/model/cbi/qos/qos.lua @@ -41,6 +41,16 @@ t:value("Priority", translate("priority")) t:value("Express", translate("express")) t:value("Normal", translate("normal")) t:value("Bulk", translate("low")) + +local uci = require "luci.model.uci" +uci.cursor():foreach("qos", "class", + function (section) + local n = section[".name"] + if string.sub(n,-string.len("_down"))~="_down" then + t:value(n) + end + end) + t.default = "Normal" srch = s:option(Value, "srchost", translate("Source host")) |