modules/admin-core: change network uvl scheme to allow ipv4 routes without gateway
[project/luci.git] / modules / admin-core / root / lib / uci / schema / default / network
index 9c9d0ed37f1dac12028611c7b19845b660b1a75b..5a5866f466ef2638430344dc3930233ed3c9c8b9 100644 (file)
@@ -210,7 +210,6 @@ config variable
        option title    'Service type'
        option section  'network.interface'
        option type             'enum'
-       option required 'true'
        list   depends  'proto=3g'
 
 config enum
@@ -385,8 +384,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