2 LuCI - Lua Configuration Interface
4 Copyright 2011 Manuel Munz <freifunk at somakoma dot de>
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
13 m = Map("luci_statistics",
14 translate("OLSRd Plugin Configuration"),
15 translate("The OLSRd plugin reads information about meshed networks from the txtinfo plugin of OLSRd."))
17 s = m:section(NamedSection, "collectd_olsrd", "luci_statistics" )
19 enable = s:option(Flag, "enable", translate("Enable this plugin"))
22 host = s:option(Value, "Host", translate("Host"), translate("IP or hostname where to get the txtinfo output from"))
23 host.placeholder = "127.0.0.1"
24 host.datatype = "host"
27 port = s:option(Value, "Port", translate("Port"))
28 port.placeholder = "2006"
29 port.datatype = "range(0,65535)"
33 cl = s:option(ListValue, "CollectLinks", translate("CollectLinks"),
34 translate("Specifies what information to collect about links."))
40 cr = s:option(ListValue, "CollectRoutes", translate("CollectRoutes"),
41 translate("Specifies what information to collect about routes."))
45 cr.default = "Summary"
47 ct = s:option(ListValue, "CollectTopology", translate("CollectTopology"),
48 translate("Specifies what information to collect about the global topology."))
52 ct.default = "Summary"