root/ff-luci/trunk/modules/admin-core/root/lib/uci/schema/default/network @ 3570

Revision 3570, 9.1 KB (checked in by jow, 5 years ago)

* luci/admin-full: implement 3G support in interface config
* luci/admin-mini: extend network scheme to cover 3G support
* luci/i18n: add required strings for 3G support

Line 
1package network
2
3config package
4    option title    'Network configuration'
5
6config 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=ppp, device'
14    list   depends  'proto=3g, device'
15    list   depends  'proto=pptp, username, password, server'
16    list   depends  'proto=dhcp'
17    list   depends  'proto=none'
18    option named    'true'
19    option required 'true'
20
21config variable
22    option name 'ifname'
23    option title    'Physical interface'
24    option section  'network.interface'
25
26config variable
27    option name 'macaddr'
28    option title    'Interface MAC address'
29    option section  'network.interface'
30    option datatype 'macaddr'
31
32config variable
33    option name 'mtu'
34    option title    'MTU'
35    option section  'network.interface'
36    option datatype 'uint'
37
38config variable
39    option name 'ipaddr'
40    option title    'IPv4 host address'
41    option section  'network.interface'
42    option datatype 'ip4addr'
43
44config variable
45    option name 'netmask'
46    option title    'IPv4 network mask'
47    option section  'network.interface'
48    option datatype 'ip4addr'
49
50config variable
51    option name 'gateway'
52    option title    'IPv4 gateway'
53    option section  'network.interface'
54    option datatype 'ip4addr'
55
56config variable
57    option name 'bcast'
58    option title    'IPv4 broadcast address'
59    option section  'network.interface'
60    option datatype 'ip4addr'
61
62config variable
63    option name 'ip6addr'
64    option title    'IPv6 address (CIDR)'
65    option section  'network.interface'
66    option datatype 'ip6addr'
67
68config variable
69    option name 'ip6gw'
70    option title    'IPv6 gateway'
71    option section  'network.interface'
72    option datatype 'ip6addr'
73
74config variable
75    option name 'dns'
76    option title    'DNS server (IPv4 or IPv6)'
77    option section  'network.interface'
78    option datatype 'ipaddr'
79    option multival 'true'
80
81config variable
82    option name 'keepalive'
83    option title    'keep-alive'
84    option description  'Number of connection failures before reconnect'
85    option section  'network.interface'
86    option datatype 'uint'
87    list   depends  'proto=pppoe'
88    list   depends  'proto=pptp'
89    list   depends  'proto=ppp'
90    list   depends  'proto=3g'
91
92config variable
93    option name 'demand'
94    option title    'Dial on-demand'
95    option description  'Number of seconds to wait before closing the connection due to inactivity'
96    option section  'network.interface'
97    option datatype 'uint'
98    list   depends  'proto=pppoe'
99    list   depends  'proto=pptp'
100    list   depends  'proto=ppp'
101    list   depends  'proto=3g'
102
103config variable
104    option name 'username'
105    option title    'Username'
106    option section  'network.interface'
107    option datatype 'string'
108    list   depends  'proto=pppoe'
109    list   depends  'proto=pptp'
110    list   depends  'proto=ppp'
111    list   depends  'proto=3g'
112
113config variable
114    option name 'password'
115    option title    'Password'
116    option section  'network.interface'
117    option datatype 'string'
118    list   depends  'proto=pppoe'
119    list   depends  'proto=pptp'
120    list   depends  'proto=ppp'
121    list   depends  'proto=3g'
122
123config variable
124    option name 'server'
125    option title    'PPTP server'
126    option section  'network.interface'
127    option datatype 'host'
128    list   depends  'proto=pptp'
129
130config variable
131    option name 'device'
132    option title    'Modem device'
133    option section  'network.interface'
134    option datatype 'device'
135    list   depends  'proto=ppp'
136    list   depends  'proto=3g'
137
138config variable
139    option name 'defaultroute'
140    option title    'Replace default route'
141    option section  'network.interface'
142    option datatype 'boolean'
143    list   depends  'proto=ppp'
144    list   depends  'proto=3g'
145
146config variable
147    option name 'peerdns'
148    option title    'Use peer DNS'
149    option section  'network.interface'
150    option datatype 'boolean'
151    list   depends  'proto=ppp'
152    list   depends  'proto=3g'
153
154config variable
155    option name 'ipv6'
156    option title    'Enable IPv6 on PPP link'
157    option section  'network.interface'
158    option datatype 'boolean'
159    list   depends  'proto=ppp'
160    list   depends  'proto=3g'
161
162config variable
163    option name 'connect'
164    option title    'PPP connect script'
165    option section  'network.interface'
166    option datatype 'file'
167    list   depends  'proto=ppp'
168    list   depends  'proto=3g'
169
170config variable
171    option name 'disconnect'
172    option title    'PPP disconnect script'
173    option section  'network.interface'
174    option datatype 'file'
175    list   depends  'proto=ppp'
176    list   depends  'proto=3g'
177
178config variable
179    option name 'pppd_options'
180    option title    'Additional PPP daemon options'
181    option section  'network.interface'
182    option datatype 'string'
183    list   depends  'proto=ppp'
184    list   depends  'proto=3g'
185
186config variable
187    option name 'maxwait'
188    option title    'Setup wait time'
189    option description  'Number of seconds to wait for the device to become ready'
190    option section  'network.interface'
191    option datatype 'uint'
192    list   depends  'proto=3g'
193
194config variable
195    option name 'apn'
196    option title    'Access point (APN)'
197    option section  'network.interface'
198    option datatype 'string'
199    list   depends  'proto=3g'
200
201config variable
202    option name 'pincode'
203    option title    'PIN code'
204    option section  'network.interface'
205    option datatype 'uint'
206    list   depends  'proto=3g'
207
208config variable
209    option name 'service'
210    option title    'Service type'
211    option section  'network.interface'
212    option type     'enum'
213    option required 'true'
214    list   depends  'proto=3g'
215
216config enum
217    option variable 'network.interface.service'
218    option value    'umts'
219    option title    'UMTS/GPRS'
220
221config enum
222    option variable 'network.interface.service'
223    option value    'cdma'
224    option title    'CDMA'
225
226config enum
227    option variable 'network.interface.service'
228    option value    'evdo'
229    option title    'EV-DO'
230
231config variable
232    option name 'proto'
233    option title    'Protocol'
234    option section  'network.interface'
235    option type     'enum'
236    option required 'true'
237
238config enum
239    option variable 'network.interface.proto'
240    option value    'none'
241    option title    'Disabled'
242
243config enum
244    option variable 'network.interface.proto'
245    option value    'dhcp'
246    option title    'Retrieve IP address via DHCP'
247    option default  'true'
248
249config enum
250    option variable 'network.interface.proto'
251    option value    'pptp'
252    option title    'Interface is a PPTP tunnel endpoint'
253
254config enum
255    option variable 'network.interface.proto'
256    option value    'static'
257    option title    'Interface has static network configuration'
258
259config enum
260    option variable 'network.interface.proto'
261    option value    'pppoe'
262    option title    'Interface is a PPPoE connection'
263
264config enum
265    option variable 'network.interface.proto'
266    option value    'ppp'
267    option title    'Interface is a PPP connection'
268
269config enum
270    option variable 'network.interface.proto'
271    option value    '3g'
272    option title    '3G UMTS/GPRS connection'
273
274config variable
275    option name 'type'
276    option title    'Option type'
277    option section  'network.interface'
278    option type 'enum'
279
280config enum
281    option variable 'network.interface.type'
282    option value    'bridge'
283    option title    'This is a bridge interface'
284
285
286
287config section
288    option name 'alias'
289    option title    'Alias interface definition'
290    option package  'network'
291    list   depends  'proto=static, ipaddr, netmask'
292    list   depends  'proto=static, ip6addr'
293    option named    'true'
294
295config variable
296    option name 'interface'
297    option title    'Parent interface'
298    option section  'network.alias'
299    option valueof  'network.interface'
300    option required 'true'
301
302config variable
303    option name 'ipaddr'
304    option title    'IPv4 host address'
305    option section  'network.alias'
306    option datatype 'ip4addr'
307
308config variable
309    option name 'netmask'
310    option title    'IPv4 network mask'
311    option section  'network.alias'
312    option datatype 'ip4addr'
313
314config variable
315    option name 'gateway'
316    option title    'IPv4 gateway'
317    option section  'network.alias'
318    option datatype 'ip4addr'
319
320config variable
321    option name 'bcast'
322    option title    'IPv4 broadcast address'
323    option section  'network.alias'
324    option datatype 'ip4addr'
325
326config variable
327    option name 'ip6addr'
328    option title    'IPv6 address (CIDR)'
329    option section  'network.alias'
330    option datatype 'ip6addr'
331
332config variable
333    option name 'ip6gw'
334    option title    'IPv6 gateway'
335    option section  'network.alias'
336    option datatype 'ip6addr'
337
338config variable
339    option name 'dns'
340    option title    'DNS server (IPv4 or IPv6)'
341    option section  'network.alias'
342    option datatype 'ipaddr'
343
344config variable
345    option name 'proto'
346    option title    'Protocol'
347    option section  'network.alias'
348    option type     'enum'
349    option required 'true'
350
351config enum
352    option variable 'network.alias.proto'
353    option value    'static'
354    option title    'Interface has static network configuration'
355
356
357
358config section
359    option name 'route'
360    option title    'Static route definition'
361    option package  'network'
362
363config variable
364    option name 'interface'
365    option title    'Interface'
366    option section  'network.route'
367    option valueof  'network.interface'
368    option required 'true'
369
370config variable
371    option name 'target'
372    option title    'Target IPv4 host or network'
373    option section  'network.route'
374    option datatype 'ip4addr'
375    option required 'true'
376
377config variable
378    option name 'netmask'
379    option title    'Target IPv4 netmask'
380    option section  'network.route'
381    option datatype 'ip4addr'
382
383config variable
384    option name 'gateway'
385    option title    'IPv4 gateway'
386    option section  'network.route'
387    option datatype 'ip4addr'
388    option required 'true'
389
390
391
392config section
393    option name 'switch'
394    option title    'Section switch'
395    option package  'network'
396    option named    'true'
397    option dynamic  'true'
398    option required 'true'
Note: See TracBrowser for help on using the browser.