3 Luci configuration model for statistics - collectd interface plugin configuration
4 (c) 2008 Freifunk Leipzig / Jo-Philipp Wich <xm@leipzig.freifunk.net>
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
10 http://www.apache.org/licenses/LICENSE-2.0
19 m = Map("luci_statistics")
21 -- collectd_interface config section
22 s = m:section( NamedSection, "collectd_interface", "luci_statistics" )
24 -- collectd_interface.enable
25 enable = s:option( Flag, "enable" )
28 -- collectd_interface.interfaces (Interface)
29 interfaces = s:option( MultiValue, "Interfaces" )
30 interfaces.widget = "select"
32 interfaces:depends( "enable", 1 )
33 for k, v in pairs(luci.sys.net.devices()) do
37 -- collectd_interface.ignoreselected (IgnoreSelected)
38 ignoreselected = s:option( Flag, "IgnoreSelected" )
39 ignoreselected.default = 0
40 ignoreselected:depends( "enable", 1 )