diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2008-09-03 21:49:13 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2008-09-03 21:49:13 +0000 |
commit | 727e9878fb00f545c0cd1b0130e789a5764eee3b (patch) | |
tree | 38d6c03b8018e3587232c06410a9286e3d4c5f3c /libs/uvl/root/lib/uci | |
parent | 5cf454019c535ee25c22e8df693c65a509bce316 (diff) |
* luci/libs/uvl:
- implement host datatype which matches hostname, ip4addr or ip6addr datatype
- implement multival flag for options
- fix handling of OPT_BADVALUE errors
- add multival flag spec to reference scheme
Diffstat (limited to 'libs/uvl/root/lib/uci')
-rw-r--r-- | libs/uvl/root/lib/uci/schema/default/firewall | 4 | ||||
-rw-r--r-- | libs/uvl/root/lib/uci/schema/meta/schema | 9 |
2 files changed, 11 insertions, 2 deletions
diff --git a/libs/uvl/root/lib/uci/schema/default/firewall b/libs/uvl/root/lib/uci/schema/default/firewall index dc488d40fd..e421b11030 100644 --- a/libs/uvl/root/lib/uci/schema/default/firewall +++ b/libs/uvl/root/lib/uci/schema/default/firewall @@ -15,8 +15,8 @@ config variable option name 'network' option title 'Associated network of this firewall zone' option section 'firewall.zone' -# option valueof 'network.interface' -# option type 'lazylist' + option valueof 'network.interface' + option multival true config variable option name 'forward' diff --git a/libs/uvl/root/lib/uci/schema/meta/schema b/libs/uvl/root/lib/uci/schema/meta/schema index 9068124544..1d673d3502 100644 --- a/libs/uvl/root/lib/uci/schema/meta/schema +++ b/libs/uvl/root/lib/uci/schema/meta/schema @@ -210,6 +210,15 @@ config variable option datatype 'boolean' option required false +# Variable multiple values flag (schema.@variable.multival) +config variable + option name 'multival' + option title 'Specify whether this variable may contain multiple values separated by space' + option section 'schema.variable' + option type 'variable' + option datatype 'boolean' + option required false + # Variable type (schema.@variable.type) config variable option name 'type' |