diff options
author | Ben Pfaff <blp@nicira.com> | 2010-02-25 14:59:33 -0800 |
---|---|---|
committer | Ben Pfaff <blp@nicira.com> | 2010-02-25 14:59:41 -0800 |
commit | bfc96d9b50ae119fcbf39a9511bd9f662e7ad390 (patch) | |
tree | 254e753c940fa0997879b1494ef01d0558d91a4b /ovsdb/mutation.c | |
parent | a26cc67c16932fa9d07da200bbff75889cfe7529 (diff) | |
download | openvswitch-bfc96d9b50ae119fcbf39a9511bd9f662e7ad390.tar.gz |
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 'ovsdb/mutation.c')
-rw-r--r-- | ovsdb/mutation.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ovsdb/mutation.c b/ovsdb/mutation.c index 72d7d0caf..9f09d5941 100644 --- a/ovsdb/mutation.c +++ b/ovsdb/mutation.c @@ -310,7 +310,7 @@ mutate_scalar(const struct ovsdb_type *dst_type, struct ovsdb_datum *dst, } } - error = ovsdb_datum_sort(dst, dst_type); + error = ovsdb_datum_sort(dst, dst_type->key.type); if (error) { ovsdb_error_destroy(error); return ovsdb_error("constraint violation", |