modules/admin-core: allow static v6 routes without gateway
[project/luci.git] / modules / admin-core / root / lib / uci / schema / default / network
index 9c9d0ed..8bf8dd1 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
@@ -387,6 +386,46 @@ config variable
        option datatype 'ip4addr'
        option required 'true'
 
+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