aboutsummaryrefslogtreecommitdiff
path: root/lib/ovsdb-parser.h
diff options
context:
space:
mode:
authorBen Pfaff <blp@nicira.com>2010-02-25 14:59:33 -0800
committerBen Pfaff <blp@nicira.com>2010-02-25 14:59:41 -0800
commitbfc96d9b50ae119fcbf39a9511bd9f662e7ad390 (patch)
tree254e753c940fa0997879b1494ef01d0558d91a4b /lib/ovsdb-parser.h
parenta26cc67c16932fa9d07da200bbff75889cfe7529 (diff)
ovsdb: Add support for "enum" constraints.
Some of the uses for the formerly supported regular expression constraints were simply to limit values to those in a set of allowed values. This commit adds support for that kind of simple enumeration constraint.
Diffstat (limited to 'lib/ovsdb-parser.h')
-rw-r--r--lib/ovsdb-parser.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/ovsdb-parser.h b/lib/ovsdb-parser.h
index a27563a3..d6270bb1 100644
--- a/lib/ovsdb-parser.h
+++ b/lib/ovsdb-parser.h
@@ -49,6 +49,8 @@ enum ovsdb_parser_types {
OP_INTEGER = 1 << JSON_INTEGER, /* 123. */
OP_NONINTEGER = 1 << JSON_REAL, /* 123.456. */
OP_STRING = 1 << JSON_STRING, /* "..." */
+ OP_ANY = (OP_NULL | OP_FALSE | OP_TRUE | OP_OBJECT | OP_ARRAY
+ | OP_INTEGER | OP_NONINTEGER | OP_STRING),
OP_BOOLEAN = OP_FALSE | OP_TRUE,
OP_NUMBER = OP_INTEGER | OP_NONINTEGER,