luci-0.8: merge r4719
[project/luci.git] / modules / admin-core / root / lib / uci / schema / default / network
1 package network
2
3 config package
4 option title 'Network configuration'
5
6 config section
7 option name 'interface'
8 option title 'Network interface'
9 option package 'network'
10 list depends 'proto=static, ipaddr, netmask'
11 list depends 'proto=static, ip6addr'
12 list depends 'proto=pppoe, username, password'
13 list depends 'proto=pppoa, username, password, encaps, vpi, vci'
14 list depends 'proto=ppp, device'
15 list depends 'proto=3g, device'
16 list depends 'proto=pptp, username, password, server'
17 list depends 'proto=dhcp'
18 list depends 'proto=none'
19 option named 'true'
20 option required 'true'
21
22 config variable
23 option name 'ifname'
24 option title 'Physical interface'
25 option section 'network.interface'
26
27 config variable
28 option name 'macaddr'
29 option title 'Interface MAC address'
30 option section 'network.interface'
31 option datatype 'macaddr'
32
33 config variable
34 option name 'mtu'
35 option title 'MTU'
36 option section 'network.interface'
37 option datatype 'uint'
38
39 config variable
40 option name 'ipaddr'
41 option title 'IPv4 host address'
42 option section 'network.interface'
43 option datatype 'ip4addr'
44
45 config variable
46 option name 'netmask'
47 option title 'IPv4 network mask'
48 option section 'network.interface'
49 option datatype 'ip4addr'
50
51 config variable
52 option name 'gateway'
53 option title 'IPv4 gateway'
54 option section 'network.interface'
55 option datatype 'ip4addr'
56
57 config variable
58 option name 'bcast'
59 option title 'IPv4 broadcast address'
60 option section 'network.interface'
61 option datatype 'ip4addr'
62
63 config variable
64 option name 'ip6addr'
65 option title 'IPv6 address (CIDR)'
66 option section 'network.interface'
67 option datatype 'ip6addr'
68
69 config variable
70 option name 'ip6gw'
71 option title 'IPv6 gateway'
72 option section 'network.interface'
73 option datatype 'ip6addr'
74
75 config variable
76 option name 'dns'
77 option title 'DNS server (IPv4 or IPv6)'
78 option section 'network.interface'
79 option datatype 'ipaddr'
80 option multival 'true'
81
82 config variable
83 option name 'keepalive'
84 option title 'keep-alive'
85 option description 'Number of connection failures before reconnect'
86 option section 'network.interface'
87 option datatype 'string'
88 list depends 'proto=pppoe'
89 list depends 'proto=pptp'
90 list depends 'proto=ppp'
91 list depends 'proto=3g'
92 list depends 'proto=pppoa'
93
94 config variable
95 option name 'demand'
96 option title 'Dial on-demand'
97 option description 'Number of seconds to wait before closing the connection due to inactivity'
98 option section 'network.interface'
99 option datatype 'uint'
100 list depends 'proto=pppoe'
101 list depends 'proto=pppoa'
102 list depends 'proto=pptp'
103 list depends 'proto=ppp'
104 list depends 'proto=3g'
105
106 config variable
107 option name 'username'
108 option title 'Username'
109 option section 'network.interface'
110 option datatype 'string'
111 list depends 'proto=pppoa'
112 list depends 'proto=pppoe'
113 list depends 'proto=pptp'
114 list depends 'proto=ppp'
115 list depends 'proto=3g'
116
117 config variable
118 option name 'password'
119 option title 'Password'
120 option section 'network.interface'
121 option datatype 'string'
122 list depends 'proto=pppoe'
123 list depends 'proto=pppoa'
124 list depends 'proto=pptp'
125 list depends 'proto=ppp'
126 list depends 'proto=3g'
127
128 config variable
129 option name 'encaps'
130 option title 'PPPoA encapsulation mode'
131 option section 'network.interface'
132 option type 'enum'
133 list depends 'proto=pppoa'
134
135 config enum
136 option variable 'network.interface.encaps'
137 option value 'vc'
138 option title 'VC'
139
140 config enum
141 option variable 'network.interface.encaps'
142 option value 'llc'
143 option title 'LLC'
144
145 config variable
146 option name 'vpi'
147 option title 'PPPoA VPI'
148 option section 'network.interface'
149 option datatype 'uint'
150 list depends 'proto=pppoa'
151
152 config variable
153 option name 'vci'
154 option title 'PPPoA VCI'
155 option section 'network.interface'
156 option datatype 'uint'
157 list depends 'proto=pppoa'
158
159 config variable
160 option name 'server'
161 option title 'PPTP server'
162 option section 'network.interface'
163 option datatype 'host'
164 list depends 'proto=pptp'
165
166 config variable
167 option name 'device'
168 option title 'Modem device'
169 option section 'network.interface'
170 option datatype 'device'
171 list depends 'proto=ppp'
172 list depends 'proto=3g'
173
174 config variable
175 option name 'defaultroute'
176 option title 'Replace default route'
177 option section 'network.interface'
178 option datatype 'boolean'
179 list depends 'proto=ppp'
180 list depends 'proto=pppoa'
181 list depends 'proto=pppoe'
182 list depends 'proto=pptp'
183 list depends 'proto=3g'
184
185 config variable
186 option name 'peerdns'
187 option title 'Use peer DNS'
188 option section 'network.interface'
189 option datatype 'boolean'
190 list depends 'proto=ppp'
191 list depends 'proto=pppoe'
192 list depends 'proto=pppoa'
193 list depends 'proto=pptp'
194 list depends 'proto=3g'
195
196 config variable
197 option name 'ipv6'
198 option title 'Enable IPv6 on PPP link'
199 option section 'network.interface'
200 option datatype 'boolean'
201 list depends 'proto=ppp'
202 list depends 'proto=pppoe'
203 list depends 'proto=pppoa'
204 list depends 'proto=pptp'
205 list depends 'proto=3g'
206
207 config variable
208 option name 'connect'
209 option title 'PPP connect script'
210 option section 'network.interface'
211 option datatype 'file'
212 list depends 'proto=ppp'
213 list depends 'proto=pppoe'
214 list depends 'proto=pppoa'
215 list depends 'proto=pptp'
216 list depends 'proto=3g'
217
218 config variable
219 option name 'disconnect'
220 option title 'PPP disconnect script'
221 option section 'network.interface'
222 option datatype 'file'
223 list depends 'proto=ppp'
224 list depends 'proto=pppoe'
225 list depends 'proto=pppoa'
226 list depends 'proto=pptp'
227 list depends 'proto=3g'
228
229 config variable
230 option name 'pppd_options'
231 option title 'Additional PPP daemon options'
232 option section 'network.interface'
233 option datatype 'string'
234 list depends 'proto=ppp'
235 list depends 'proto=pppoe'
236 list depends 'proto=pppoa'
237 list depends 'proto=pptp'
238 list depends 'proto=3g'
239
240 config variable
241 option name 'maxwait'
242 option title 'Setup wait time'
243 option description 'Number of seconds to wait for the device to become ready'
244 option section 'network.interface'
245 option datatype 'uint'
246 list depends 'proto=3g'
247
248 config variable
249 option name 'apn'
250 option title 'Access point (APN)'
251 option section 'network.interface'
252 option datatype 'string'
253 list depends 'proto=3g'
254
255 config variable
256 option name 'pincode'
257 option title 'PIN code'
258 option section 'network.interface'
259 option datatype 'uint'
260 list depends 'proto=3g'
261
262 config variable
263 option name 'service'
264 option title 'Service type'
265 option section 'network.interface'
266 option type 'enum'
267 list depends 'proto=3g'
268
269 config enum
270 option variable 'network.interface.service'
271 option value 'umts'
272 option title 'UMTS/GPRS'
273
274 config enum
275 option variable 'network.interface.service'
276 option value 'cdma'
277 option title 'CDMA'
278
279 config enum
280 option variable 'network.interface.service'
281 option value 'evdo'
282 option title 'EV-DO'
283
284 config variable
285 option name 'proto'
286 option title 'Protocol'
287 option section 'network.interface'
288 option type 'enum'
289 option required 'true'
290
291 config enum
292 option variable 'network.interface.proto'
293 option value 'none'
294 option title 'Disabled'
295
296 config enum
297 option variable 'network.interface.proto'
298 option value 'dhcp'
299 option title 'Retrieve IP address via DHCP'
300 option default 'true'
301
302 config enum
303 option variable 'network.interface.proto'
304 option value 'pptp'
305 option title 'Interface is a PPTP tunnel endpoint'
306
307 config enum
308 option variable 'network.interface.proto'
309 option value 'static'
310 option title 'Interface has static network configuration'
311
312 config enum
313 option variable 'network.interface.proto'
314 option value 'pppoe'
315 option title 'Interface is a PPPoE connection'
316
317 config enum
318 option variable 'network.interface.proto'
319 option value 'pppoa'
320 option title 'Interface is a PPPoA connection'
321
322 config enum
323 option variable 'network.interface.proto'
324 option value 'ppp'
325 option title 'Interface is a PPP connection'
326
327 config enum
328 option variable 'network.interface.proto'
329 option value '3g'
330 option title '3G UMTS/GPRS connection'
331
332 config variable
333 option name 'type'
334 option title 'Option type'
335 option section 'network.interface'
336 option type 'enum'
337
338 config enum
339 option variable 'network.interface.type'
340 option value 'bridge'
341 option title 'This is a bridge interface'
342
343 config variable
344 option name 'stp'
345 option title 'Enable STP'
346 option section 'network.interface.stp'
347 option datatype 'boolean'
348 option depends 'type=bridge'
349
350
351
352 config section
353 option name 'alias'
354 option title 'Alias interface definition'
355 option package 'network'
356 list depends 'proto=static, ipaddr, netmask'
357 list depends 'proto=static, ip6addr'
358 option named 'true'
359
360 config variable
361 option name 'interface'
362 option title 'Parent interface'
363 option section 'network.alias'
364 option valueof 'network.interface'
365 option required 'true'
366
367 config variable
368 option name 'ipaddr'
369 option title 'IPv4 host address'
370 option section 'network.alias'
371 option datatype 'ip4addr'
372
373 config variable
374 option name 'netmask'
375 option title 'IPv4 network mask'
376 option section 'network.alias'
377 option datatype 'ip4addr'
378
379 config variable
380 option name 'gateway'
381 option title 'IPv4 gateway'
382 option section 'network.alias'
383 option datatype 'ip4addr'
384
385 config variable
386 option name 'bcast'
387 option title 'IPv4 broadcast address'
388 option section 'network.alias'
389 option datatype 'ip4addr'
390
391 config variable
392 option name 'ip6addr'
393 option title 'IPv6 address (CIDR)'
394 option section 'network.alias'
395 option datatype 'ip6addr'
396
397 config variable
398 option name 'ip6gw'
399 option title 'IPv6 gateway'
400 option section 'network.alias'
401 option datatype 'ip6addr'
402
403 config variable
404 option name 'dns'
405 option title 'DNS server (IPv4 or IPv6)'
406 option section 'network.alias'
407 option datatype 'ipaddr'
408
409 config variable
410 option name 'proto'
411 option title 'Protocol'
412 option section 'network.alias'
413 option type 'enum'
414 option required 'true'
415
416 config enum
417 option variable 'network.alias.proto'
418 option value 'static'
419 option title 'Interface has static network configuration'
420
421
422
423 config section
424 option name 'route'
425 option title 'Static route definition'
426 option package 'network'
427
428 config variable
429 option name 'interface'
430 option title 'Interface'
431 option section 'network.route'
432 option valueof 'network.interface'
433 option required 'true'
434
435 config variable
436 option name 'target'
437 option title 'Target IPv4 host or network'
438 option section 'network.route'
439 option datatype 'ip4addr'
440 option required 'true'
441
442 config variable
443 option name 'netmask'
444 option title 'Target IPv4 netmask'
445 option section 'network.route'
446 option datatype 'ip4addr'
447
448 config variable
449 option name 'gateway'
450 option title 'IPv4 gateway'
451 option section 'network.route'
452 option datatype 'ip4addr'
453
454 config variable
455 option name 'metric'
456 option title 'Metric'
457 option section 'network.route6'
458 option datatype 'uint'
459
460
461
462 config section
463 option name 'route6'
464 option title 'Static IPv6 route definition'
465 option package 'network'
466
467 config variable
468 option name 'interface'
469 option title 'Interface'
470 option section 'network.route6'
471 option valueof 'network.interface'
472 option required 'true'
473
474 config variable
475 option name 'target'
476 option title 'Target IPv6 host or network (CIDR)'
477 option section 'network.route6'
478 option datatype 'ip6addr'
479 option required 'true'
480
481 config variable
482 option name 'gateway'
483 option title 'IPv6 gateway'
484 option section 'network.route6'
485 option datatype 'ip6addr'
486 option required 'false'
487
488 config variable
489 option name 'metric'
490 option title 'Metric'
491 option section 'network.route6'
492 option datatype 'uint'
493
494
495
496 config section
497 option name 'switch'
498 option title 'Section switch'
499 option package 'network'
500 option named 'true'
501 option dynamic 'true'
502 option required 'true'