luci-0.11: merge r9571 - r9622
[project/luci.git] / applications / luci-statistics / luasrc / model / cbi / luci_statistics / conntrack.lua
1 --[[
2
3 Copyright 2011 Jo-Philipp Wich <xm@subsignal.org>
4
5 Licensed under the Apache License, Version 2.0 (the "License");
6 you may not use this file except in compliance with the License.
7 You may obtain a copy of the License at
8
9 http://www.apache.org/licenses/LICENSE-2.0
10 ]]--
11
12 m = Map("luci_statistics",
13 translate("Conntrack Plugin Configuration"),
14 translate("The conntrack plugin collects statistics about the number of tracked connections."))
15
16 s = m:section( NamedSection, "collectd_conntrack", "luci_statistics" )
17
18 enable = s:option( Flag, "enable", translate("Enable this plugin") )
19 enable.default = 0
20
21 return m