Backported network scheme
authorSteven Barth <steven@midlink.org>
Sat, 6 Sep 2008 17:06:53 +0000 (17:06 +0000)
committerSteven Barth <steven@midlink.org>
Sat, 6 Sep 2008 17:06:53 +0000 (17:06 +0000)
libs/uvl/root/lib/uci/schema/default/network

index afd17fb..62790cb 100644 (file)
@@ -114,6 +114,11 @@ config variable
 
 config enum
        option variable 'network.interface.proto'
+       option value    'none'
+       option title    'Disabled'
+
+config enum
+       option variable 'network.interface.proto'
        option value    'dhcp'
        option title    'Retrieve IP address via DHCP'
        option default  true
@@ -218,6 +223,40 @@ config enum
 
 
 config section
+       option name     'route'
+       option title    'Static route definition'
+       option package  'network'
+
+config variable
+       option name     'interface'
+       option title    'Interface for the route'
+       option section  'network.route'
+       option valueof  'network.interface'
+       option required true
+
+config variable
+       option name     'target'
+       option title    'Target IPv4 host or net address'
+       option section  'network.route'
+       option datatype 'ip4addr'
+       option required true
+
+config variable
+       option name     'netmask'
+       option title    'Target IPv4 netmask (for subnet routes)'
+       option section  'network.route'
+       option datatype 'ip4addr'
+
+config variable
+       option name     'gateway'
+       option title    'IPv4 gateway address'
+       option section  'network.route'
+       option datatype 'ip4addr'
+       option required true
+
+
+
+config section
        option name     'switch'
        option title    'Section switch'
        option package  'network'