luci-app-olsrd2: New Package for OLSR2 configuration and status visualisation'
[feed/routing.git] / luci-app-olsrd2 / htdocs / luci-static / resources / view / olsrd2 / mesh.js
1 'use strict';
2 'require view';
3 'require form';
4
5 return view.extend({
6 render: function() {
7 var m, s, o;
8
9 m = new form.Map('olsrd2', 'OLSRD2 Daemon');
10
11 s = m.section(form.TypedSection, 'mesh', _('mesh configuration section'));
12 s.anonymous = true;
13 s.addremove = false;
14 o = s.option(form.Value, "port", _("port defines the UDP port number of the RFC5444 socket."), "1-65535");
15 o.optional = true;
16 o.placeholder = 269;
17 o.datatype = "range(1,65535)";
18 o = s.option(form.Value, "ip_proto", _("ip_proto defines the IP protocol number that can be used for RFC5444 communication."), "1-255");
19 o.optional = true;
20 o.placeholder = 138;
21 o.datatype = "range(1,255)";
22 o = s.option(form.Value, "aggregation_interval", _("aggregation_interval defines the time the local RFC5444 implementation will keep messages to aggregate them before creating a new RFC5444 packet to forward them."), ">0.1 s");
23 o.optional = true;
24 o.placeholder = 1.0;
25 o.datatype = "and(min(0.1), ufloat)";
26
27 return m.render();
28 }
29 });