mirror of
https://github.com/openwrt/routing.git
synced 2025-02-23 10:26:14 +00:00
Compile tested: mips_24kc, arm_cortex-a9_vfpv3-d16, i386_pentium4, x86_64, i386_pentium-mmx, mipsel_24kc Signed-off-by: Patrick Grimm <patrick@lunatiki.de>
33 lines
1.1 KiB
JavaScript
33 lines
1.1 KiB
JavaScript
'use strict';
|
|
'require view';
|
|
'require form';
|
|
|
|
return view.extend({
|
|
render: function() {
|
|
var m, s, o;
|
|
|
|
m = new form.Map('olsrd2', 'OLSRD2 Daemon');
|
|
|
|
s = m.section(form.TypedSection, 'domain', _('domain configuration section'));
|
|
s.anonymous = true;
|
|
s.addremove = false;
|
|
o = s.option(form.Value, "table", _("table defines the routing table for the local routing entries."), "0-254");
|
|
o.optional = true;
|
|
o.placeholder = 254;
|
|
o.datatype = "range(0,254)";
|
|
o = s.option(form.Value, "protocol", _("protocol defines the protocol number for the local routing entries."), "0-254");
|
|
o.optional = true;
|
|
o.placeholder = 100;
|
|
o.datatype = "range(0,254)";
|
|
o = s.option(form.Value, "distance", _("distance defines the 'metric' (hopcount) of the local routing entries."), "0-254");
|
|
o.optional = true;
|
|
o.placeholder = 2;
|
|
o.datatype = "range(0,254)";
|
|
o = s.option(form.Flag, "srcip_routes", _("srcip_routes defines if the router sets the originator address as the source-ip entry into the local routing entries."), "");
|
|
o.optional = true;
|
|
o.datatype = "bool";
|
|
|
|
return m.render();
|
|
}
|
|
});
|