summaryrefslogtreecommitdiff
path: root/ovsdb/mutation.c
Commit message (Collapse)AuthorAgeFilesLines
* json: Move from lib to include/openvswitch.Terry Wilson2016-07-221-1/+5
| | | | | | | | | | | | | | | To easily allow both in- and out-of-tree building of the Python wrapper for the OVS JSON parser (e.g. w/ pip), move json.h to include/openvswitch. This also requires moving lib/{hmap,shash}.h. Both hmap.h and shash.h were #include-ing "util.h" even though the headers themselves did not use anything from there, but rather from include/openvswitch/util.h. Fixing that required including util.h in several C files mostly due to OVS_NOT_REACHED and things like xmalloc. Signed-off-by: Terry Wilson <twilson@redhat.com> Signed-off-by: Ben Pfaff <blp@ovn.org>
* lib: Move compiler.h to <openvswitch/compiler.h>Thomas Graf2014-12-151-2/+2
| | | | | | | | | | The following macros are renamed to avoid conflicts with other headers: * WARN_UNUSED_RESULT to OVS_WARN_UNUSED_RESULT * PRINTF_FORMAT to OVS_PRINTF_FORMAT * NO_RETURN to OVS_NO_RETURN Signed-off-by: Thomas Graf <tgraf@noironetworks.com> Acked-by: Ben Pfaff <blp@nicira.com>
* Rename NOT_REACHED to OVS_NOT_REACHEDHarold Lim2013-12-171-3/+3
| | | | | | | | This allows other libraries to use util.h that has already defined NOT_REACHED. Signed-off-by: Harold Lim <haroldl@vmware.com> Signed-off-by: Ben Pfaff <blp@nicira.com>
* ovsdb: Enforce immutability of immutable columns.Ben Pfaff2012-09-051-1/+7
| | | | | | | | | | | OVSDB has always had the ability to mark a column as "immutable", so that its value cannot be changed in a given row after that row is initially inserted. However, we discovered recently that ovsdb-server has never enforced this constraint. This commit implements enforcement. Reported-by: Paul Ingram <paul@nicira.com> Signed-off-by: Ben Pfaff <blp@nicira.com> Acked-by: Kyle Mestery <kmestery@cisco.com>
* Global replace of Nicira Networks.Raju Subramanian2012-05-021-1/+1
| | | | | | | | Replaced all instances of Nicira Networks(, Inc) to Nicira, Inc. Feature #10593 Signed-off-by: Raju Subramanian <rsubramanian@nicira.com> Signed-off-by: Ben Pfaff <blp@nicira.com>
* ovsdb: Fix spelling of "constraint violation" in error tag.Ben Pfaff2011-05-311-2/+2
|
* ovsdb: Add support for "enum" constraints.Ben Pfaff2010-02-251-1/+1
| | | | | | 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.
* ovsdb: Add default case to ovsdb_mutation_set_execute().Ben Pfaff2010-02-111-0/+3
| | | | | | | | The value of 'error' is indeterminate if m->mutator is not set to a valid value here, so we should add a default case to handle the exception. It shouldn't happen, of course. Found by Clang (http://clang-analyzer.llvm.org/).
* ovsdb: Get rid of "declare" operation.Ben Pfaff2010-02-081-2/+2
| | | | | | It's more elegant, and just as easy to implement, if we allow a "named-uuid" to be a forward reference to a "uuid-name" in a later "insert" operation.
* ovsdb: Add simple constraints.Ben Pfaff2010-02-081-146/+202
|
* ovsdb-data: Add some more functions for dealing with "struct ovsdb_datum".Ben Pfaff2010-01-261-2/+2
| | | | | | This commit refactors the functions for working with "struct ovsdb_datum", adding and exposing some more operations for ovs-vsctl to use in an upcoming commit.
* ovsdb: Add new "mutation" operation to transactions.Ben Pfaff2009-12-161-0/+462