mirror of https://github.com/openwrt/luci.git
Merge pull request #396 from fanthos/master
luci-app-qos: Add custom QOS classes to luci dropdown listpull/541/merge
commit
1cb3adb619
|
@ -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"))
|
||||
|
|
Loading…
Reference in New Issue