diff options
author | Michael Larson <slioch@slioch.vyatta.com> | 2010-04-15 13:39:40 -0700 |
---|---|---|
committer | Michael Larson <slioch@slioch.vyatta.com> | 2010-04-15 13:39:40 -0700 |
commit | 6e99cd44d88e70cce50f1e6fa105525809d8409e (patch) | |
tree | 9c10ca5af9f4e3e243321e36d0925b13dfef3538 /src/cli_val.h | |
parent | 634c79ab395af94972fcf778ec80ae7d79dc5561 (diff) | |
download | vyatta-cfg-6e99cd44d88e70cce50f1e6fa105525809d8409e.tar.gz vyatta-cfg-6e99cd44d88e70cce50f1e6fa105525809d8409e.zip |
Multiple (i.e. one or two) datatypes can now be supported on a node.def type definition.
type: ipv4,ipv6
Will now allow for the value to validated against both data types (or the first success). In the case of both failing the following message format will be returned:
vyatta@vyatta# set load-balancing wan rule 1
"1" is not a valid value of type "bool"
"1" is not a valid value of type "ipv4"
Note, that any combination of types with text being one of the types is not supported. The reason being is that with text any value is allowed, therefore it doesn't really
make sense to validate a datatype on text + ipv4 when text will always be successful.
Diffstat (limited to 'src/cli_val.h')
-rw-r--r-- | src/cli_val.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/cli_val.h b/src/cli_val.h index 9b3bcda..408cc50 100644 --- a/src/cli_val.h +++ b/src/cli_val.h @@ -102,6 +102,7 @@ typedef enum { typedef struct { vtw_type_e def_type; + vtw_type_e def_type2; char *def_type_help; char *def_node_help; char *def_default; |