[PATCH] Add regdomain, country and outdoor options for madwifi
[project/luci.git] / modules / admin-core / root / lib / uci / schema / default / network
index 00f9420..0ea439d 100644 (file)
@@ -10,7 +10,9 @@ config section
        list   depends  'proto=static, ipaddr, netmask'
        list   depends  'proto=static, ip6addr'
        list   depends  'proto=pppoe, username, password'
+       list   depends  'proto=pppoa, username, password, encaps, vpi, vci'
        list   depends  'proto=ppp, device'
+       list   depends  'proto=3g, device'
        list   depends  'proto=pptp, username, password, server'
        list   depends  'proto=dhcp'
        list   depends  'proto=none'
@@ -80,12 +82,14 @@ config variable
 config variable
        option name     'keepalive'
        option title    'keep-alive'
-       option descriptions     'Number of connection failures before reconnect'
+       option description      'Number of connection failures before reconnect'
        option section  'network.interface'
-       option datatype 'uint'
+       option datatype 'string'
        list   depends  'proto=pppoe'
        list   depends  'proto=pptp'
        list   depends  'proto=ppp'
+       list   depends  'proto=3g'
+       list   depends  'proto=pppoa'
 
 config variable
        option name     'demand'
@@ -94,17 +98,21 @@ config variable
        option section  'network.interface'
        option datatype 'uint'
        list   depends  'proto=pppoe'
+       list   depends  'proto=pppoa'
        list   depends  'proto=pptp'
        list   depends  'proto=ppp'
+       list   depends  'proto=3g'
 
 config variable
        option name     'username'
        option title    'Username'
        option section  'network.interface'
        option datatype 'string'
+       list   depends  'proto=pppoa'
        list   depends  'proto=pppoe'
        list   depends  'proto=pptp'
        list   depends  'proto=ppp'
+       list   depends  'proto=3g'
 
 config variable
        option name     'password'
@@ -112,8 +120,41 @@ config variable
        option section  'network.interface'
        option datatype 'string'
        list   depends  'proto=pppoe'
+       list   depends  'proto=pppoa'
        list   depends  'proto=pptp'
        list   depends  'proto=ppp'
+       list   depends  'proto=3g'
+
+config variable
+       option name     'encaps'
+       option title    'PPPoA encapsulation mode'
+       option section  'network.interface'
+       option type     'enum'
+       list   depends  'proto=pppoa'
+
+config enum
+       option variable 'network.interface.encaps'
+       option value    'vc'
+       option title    'VC'
+
+config enum
+       option variable 'network.interface.encaps'
+       option value    'llc'
+       option title    'LLC'
+
+config variable
+       option name     'vpi'
+       option title    'PPPoA VPI'
+       option section  'network.interface'
+       option datatype 'uint'
+       list   depends  'proto=pppoa'
+
+config variable
+       option name     'vci'
+       option title    'PPPoA VCI'
+       option section  'network.interface'
+       option datatype 'uint'
+       list   depends  'proto=pppoa'
 
 config variable
        option name     'server'
@@ -128,6 +169,7 @@ config variable
        option section  'network.interface'
        option datatype 'device'
        list   depends  'proto=ppp'
+       list   depends  'proto=3g'
 
 config variable
        option name     'defaultroute'
@@ -135,6 +177,10 @@ config variable
        option section  'network.interface'
        option datatype 'boolean'
        list   depends  'proto=ppp'
+       list   depends  'proto=pppoa'
+        list   depends  'proto=pppoe'
+       list   depends  'proto=pptp'
+       list   depends  'proto=3g'
 
 config variable
        option name     'peerdns'
@@ -142,6 +188,10 @@ config variable
        option section  'network.interface'
        option datatype 'boolean'
        list   depends  'proto=ppp'
+       list   depends  'proto=pppoe'
+       list   depends  'proto=pppoa'
+       list   depends  'proto=pptp'
+       list   depends  'proto=3g'
 
 config variable
        option name     'ipv6'
@@ -149,6 +199,10 @@ config variable
        option section  'network.interface'
        option datatype 'boolean'
        list   depends  'proto=ppp'
+       list   depends  'proto=pppoe'
+       list   depends  'proto=pppoa'
+       list   depends  'proto=pptp'
+       list   depends  'proto=3g'
 
 config variable
        option name     'connect'
@@ -156,6 +210,10 @@ config variable
        option section  'network.interface'
        option datatype 'file'
        list   depends  'proto=ppp'
+       list   depends  'proto=pppoe'
+       list   depends  'proto=pppoa'
+       list   depends  'proto=pptp'
+       list   depends  'proto=3g'
 
 config variable
        option name     'disconnect'
@@ -163,6 +221,10 @@ config variable
        option section  'network.interface'
        option datatype 'file'
        list   depends  'proto=ppp'
+       list   depends  'proto=pppoe'
+       list   depends  'proto=pppoa'
+       list   depends  'proto=pptp'
+       list   depends  'proto=3g'
 
 config variable
        option name     'pppd_options'
@@ -170,6 +232,54 @@ config variable
        option section  'network.interface'
        option datatype 'string'
        list   depends  'proto=ppp'
+       list   depends  'proto=pppoe'
+       list   depends  'proto=pppoa'
+       list   depends  'proto=pptp'
+       list   depends  'proto=3g'
+
+config variable
+       option name     'maxwait'
+       option title    'Setup wait time'
+       option description      'Number of seconds to wait for the device to become ready'
+       option section  'network.interface'
+       option datatype 'uint'
+       list   depends  'proto=3g'
+
+config variable
+       option name     'apn'
+       option title    'Access point (APN)'
+       option section  'network.interface'
+       option datatype 'string'
+       list   depends  'proto=3g'
+
+config variable
+       option name     'pincode'
+       option title    'PIN code'
+       option section  'network.interface'
+       option datatype 'uint'
+       list   depends  'proto=3g'
+
+config variable
+       option name     'service'
+       option title    'Service type'
+       option section  'network.interface'
+       option type             'enum'
+       list   depends  'proto=3g'
+
+config enum
+       option variable 'network.interface.service'
+       option value    'umts'
+       option title    'UMTS/GPRS'
+
+config enum
+       option variable 'network.interface.service'
+       option value    'cdma'
+       option title    'CDMA'
+
+config enum
+       option variable 'network.interface.service'
+       option value    'evdo'
+       option title    'EV-DO'
 
 config variable
        option name     'proto'
@@ -206,9 +316,19 @@ config enum
 
 config enum
        option variable 'network.interface.proto'
+       option value    'pppoa'
+       option title    'Interface is a PPPoA connection'
+
+config enum
+       option variable 'network.interface.proto'
        option value    'ppp'
        option title    'Interface is a PPP connection'
 
+config enum
+       option variable 'network.interface.proto'
+       option value    '3g'
+       option title    '3G UMTS/GPRS connection'
+
 config variable
        option name     'type'
        option title    'Option type'
@@ -323,8 +443,47 @@ config variable
        option title    'IPv4 gateway'
        option section  'network.route'
        option datatype 'ip4addr'
+
+config variable
+       option name     'metric'
+       option title    'Metric'
+       option section  'network.route6'
+       option datatype 'uint'
+
+
+
+config section
+       option name     'route6'
+       option title    'Static IPv6 route definition'
+       option package  'network'
+
+config variable
+       option name     'interface'
+       option title    'Interface'
+       option section  'network.route6'
+       option valueof  'network.interface'
+       option required 'true'
+
+config variable
+       option name     'target'
+       option title    'Target IPv6 host or network (CIDR)'
+       option section  'network.route6'
+       option datatype 'ip6addr'
        option required 'true'
 
+config variable
+       option name     'gateway'
+       option title    'IPv6 gateway'
+       option section  'network.route6'
+       option datatype 'ip6addr'
+       option required 'false'
+
+config variable
+       option name     'metric'
+       option title    'Metric'
+       option section  'network.route6'
+       option datatype 'uint'
+
 
 
 config section