Update qos.lua to add custom QOS classes to luci droplist

This commit is contained in:
Boyi C 2015-05-26 15:08:07 -06:00
parent 1dada8cc44
commit a948f4c77e

View file

@ -41,6 +41,16 @@ t:value("Priority", translate("priority"))
t:value("Express", translate("express")) t:value("Express", translate("express"))
t:value("Normal", translate("normal")) t:value("Normal", translate("normal"))
t:value("Bulk", translate("low")) 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" t.default = "Normal"
srch = s:option(Value, "srchost", translate("Source host")) srch = s:option(Value, "srchost", translate("Source host"))