3 description
: L
.tr('Routes specify over which interface and gateway a certain host or network can be reached.'),
7 return L
.network
.listNetworkNames().then(function(list
) {
8 var m
= new L
.cbi
.Map('network', {
9 readonly
: !self
.options
.acls
.network
12 var s4
= m
.section(L
.cbi
.TableSection
, 'route', {
13 caption
: L
.tr('Static IPv4 Routes'),
17 add_caption
: L
.tr('Add new route'),
18 remove_caption
: L
.tr('Remove route')
21 var ifc
= s4
.option(L
.cbi
.ListValue
, 'interface', {
22 caption
: L
.tr('Interface')
25 for (var i
= 0; i
< list
.length
; i
++)
28 s4
.option(L
.cbi
.InputValue
, 'target', {
29 caption
: L
.tr('Target'),
33 s4
.option(L
.cbi
.InputValue
, 'netmask', {
34 caption
: L
.tr('IPv4-Netmask'),
36 placeholder
: '255.255.255.255',
40 s4
.option(L
.cbi
.InputValue
, 'gateway', {
41 caption
: L
.tr('IPv4-Gateway'),
46 s4
.option(L
.cbi
.InputValue
, 'metric', {
47 caption
: L
.tr('Metric'),
48 datatype
: 'range(0,255)',
53 s4
.option(L
.cbi
.InputValue
, 'mtu', {
55 datatype
: 'range(64,9000)',
61 var s6
= m
.section(L
.cbi
.TableSection
, 'route6', {
62 caption
: L
.tr('Static IPv6 Routes'),
66 add_caption
: L
.tr('Add new route'),
67 remove_caption
: L
.tr('Remove route')
70 var ifc
= s6
.option(L
.cbi
.ListValue
, 'interface', {
71 caption
: L
.tr('Interface')
74 for (var i
= 0; i
< list
.length
; i
++)
77 s6
.option(L
.cbi
.InputValue
, 'target', {
78 caption
: L
.tr('Target'),
82 s6
.option(L
.cbi
.InputValue
, 'gateway', {
83 caption
: L
.tr('IPv6-Gateway'),
88 s6
.option(L
.cbi
.InputValue
, 'metric', {
89 caption
: L
.tr('Metric'),
90 datatype
: 'range(0,255)',
95 s6
.option(L
.cbi
.InputValue
, 'mtu', {
97 datatype
: 'range(64,9000)',
102 m
.insertInto('#map');