df9fc0e5e7bcb1d8e856b81b480fb4f7b0da7b6f
[project/luci.git] / libs / uvl / 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 definition'
9         option package  'network'
10         list   depends  'proto=static, ipaddr, netmask'
11         list   depends  'proto=pppoe, username, password'
12         list   depends  'proto=pptp, username, password, server'
13         list   depends  'proto=dhcp'
14         option named    true
15         option required true
16
17 config variable
18         option name     'ifname'
19         option title    'Physical interface name'
20         option section  'network.interface'
21         option required true
22
23 config variable
24         option name     'ipaddr'
25         option title    'IPv4 host address'
26         option section  'network.interface'
27         option datatype 'ip4addr'
28
29 config variable
30         option name     'netmask'
31         option title    'IPv4 network mask'
32         option section  'network.interface'
33         option datatype 'ip4addr'
34
35 config variable
36         option name     'proto'
37         option title    'Option proto'
38         option section  'network.interface'
39         option type             'enum'
40         option required true
41
42 config enum
43         option variable 'network.interface.proto'
44         option value    'dhcp'
45         option title    'Retrieve IP address via DHCP'
46
47 config enum
48         option variable 'network.interface.proto'
49         option value    'pptp'
50         option title    'Interface is a PPTP tunnel endpoint'
51
52 config enum
53         option variable 'network.interface.proto'
54         option value    'static'
55         option title    'Interface has static network configuration'
56
57 config enum
58         option variable 'network.interface.proto'
59         option value    'pppoe'
60         option title    'Retrieve IP address via PPPoE'
61
62 config variable
63         option name     'type'
64         option title    'Option type'
65         option section  'network.interface'
66         option type     'enum'
67
68 config enum
69         option variable 'network.interface.type'
70         option value    'bridge'
71         option title    'This is a bridge interface'
72
73
74 config section
75         option name     'switch'
76         option title    'Section switch'
77         option package  'network'
78         option named    true
79         option dynamic  true
80         option required true