4 return L
.Class
.extend({
5 title
: _('OLSRd Plugin Configuration'),
6 description
: _('The OLSRd plugin reads information about meshed networks from the txtinfo plugin of OLSRd.'),
8 addFormOptions: function(s
) {
11 o
= s
.option(form
.Flag
, 'enable', _('Enable this plugin'));
13 o
= s
.option(form
.Value
, 'Host', _('Host'),
14 _('IP or hostname where to get the txtinfo output from'));
17 o
= s
.option(form
.Value
, 'Port', _('Port'));
20 o
= s
.option(form
.ListValue
, 'CollectLinks', _('CollectLinks'),
21 _('Specifies what information to collect about links.'));
27 o
= s
.option(form
.ListValue
, 'CollectRoutes', _('CollectRoutes'),
28 _('Specifies what information to collect about routes.'));
29 o
.default = 'Summary';
34 o
= s
.option(form
.ListValue
, 'CollectTopology', _('CollectTopology'),
35 _('Specifies what information to collect about the global topology.'));
36 o
.default = 'Summary';
42 configSummary: function(section
) {
43 return _('Monitoring OLSRd status at %s:%d').format(
44 section
.Host
|| 'localhost',