projects
/
project
/
luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1dada8c
)
Update qos.lua to add custom QOS classes to luci droplist
396/head
author
Boyi C
<ftscby@gmail.com>
Tue, 26 May 2015 21:08:07 +0000
(15:08 -0600)
committer
Boyi C
<ftscby@gmail.com>
Tue, 26 May 2015 21:08:07 +0000
(15:08 -0600)
applications/luci-app-qos/luasrc/model/cbi/qos/qos.lua
patch
|
blob
|
history
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
99a884f
..
06b8d4e
100644
(file)
--- 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"))