luci-0.11: merge r9571 - r9622
[project/luci.git] / applications / luci-statistics / luasrc / model / cbi / luci_statistics / iwinfo.lua
1 --[[
2
3 Luci configuration model for statistics - collectd interface plugin configuration
4 (c) 2011 Jo-Philipp Wich <xm@subsignal.org>
5
6 Licensed under the Apache License, Version 2.0 (the "License");
7 you may not use this file except in compliance with the License.
8 You may obtain a copy of the License at
9
10 http://www.apache.org/licenses/LICENSE-2.0
11
12 $Id$
13
14 ]]--
15
16 local m, s, o
17
18 m = Map("luci_statistics",
19 translate("Wireless iwinfo Plugin Configuration"),
20 translate("The iwinfo plugin collects statistics about wireless signal strength, noise and quality."))
21
22 s = m:section(NamedSection, "collectd_iwinfo", "luci_statistics")
23
24 o = s:option(Flag, "enable", translate("Enable this plugin"))
25 o.default = 0
26
27 o = s:option(Value, "Interfaces", translate("Monitor interfaces"),
28 translate("Leave unselected to automatically determine interfaces to monitor."))
29 o.template = "cbi/network_ifacelist"
30 o.widget = "checkbox"
31 o.nocreate = true
32 o:depends("enable", 1)
33
34 o = s:option(Flag, "IgnoreSelected", translate("Monitor all except specified"))
35 o.default = 0
36 o:depends("enable", 1)
37
38 return m