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