summaryrefslogtreecommitdiff
path: root/lib/ovsdb-data.h
Commit message (Collapse)AuthorAgeFilesLines
* ovsdb-data: New function ovsdb_datum_from_shash().Ben Pfaff2010-09-231-0/+3
|
* ovsdb: Remove unused ovsdb_datum_from_json_unique().Ben Pfaff2010-08-251-5/+0
| | | | | This function was not used outside of the test-ovsdb program. It seems like we might as well remove it.
* ovsdb: New functions ovsdb_datum_sort_unique(), ovsdb_datum_from_json_unique().Ben Pfaff2010-07-121-0/+9
| | | | | | These new functions are more forgiving than the corresponding functions without "_unique". The goal is to be more tolerant of data provided by IDL clients, which will happen in a followup patch.
* ovsdb: New functions ovsdb_atom_default(), ovsdb_datum_default().Ben Pfaff2010-07-121-0/+2
| | | | | Having access to const copies of default atoms and data will allow OVSDB code to avoid memory allocations and reduce copying in upcoming commits.
* ovsdb: Document some ovsdb-data.[ch] functions.Ben Pfaff2010-07-121-0/+12
|
* ovs-vsctl: Support references among records at creation time.Ben Pfaff2010-06-171-2/+5
| | | | | | This makes it easy to create a bunch of records that are all related to each other in a single ovs-vsctl invocation. It adds an example to the ovs-vsctl manpage.
* ovsdb: Add support for "enum" constraints.Ben Pfaff2010-02-251-1/+6
| | | | | | 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: Get rid of "declare" operation.Ben Pfaff2010-02-081-4/+7
| | | | | | 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-3/+10
|
* ovs-vsctl: Make parsing functions return error instead of aborting.Ben Pfaff2010-01-271-5/+7
| | | | | | | | | | The upcoming "remove" command for ovs-vsctl wants to try parsing an argument two different ways. This doesn't work if a parse error always aborts immediately. This commit fixes the problem, by making a parsing failure pass up an error for higher layers to deal with instead of aborting immediately. This commit should have no user-visible effect.
* ovsdb-datum: Add functions for parsing and formatting atoms, data.Ben Pfaff2010-01-261-0/+19
| | | | | | | These functions provide an alternative to JSON parsing and formatting that is more human-friendly (and shorter). These will be used in an upcoming commit to enhance ovs-vsctl.
* ovsdb-data: Add some more functions for dealing with "struct ovsdb_datum".Ben Pfaff2010-01-261-11/+42
| | | | | | 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: Improve comments.Ben Pfaff2010-01-111-1/+15
| | | | Suggested by Justin Pettit.
* ovsdb: Save some space in the log for newly inserted records.Ben Pfaff2010-01-111-1/+4
| | | | | | | | | | | | When a new record is inserted into a database, ovsdb logs the values of all of the fields in the record. However, often new records have many columns that contain default values. There is no need to log those values, so this commit causes them to be omitted. As a side effect, this also makes "ovsdb-tool show-log --more --more" output easier to read, because record insertions print less noise. (Adding --more --more to this command makes it print changes to database records. The --more option will be introduced in an upcoming commit.)
* ovsdb: Add new "mutation" operation to transactions.Ben Pfaff2009-12-161-0/+10
|
* ovsdb: Implement new "declare" operation.Ben Pfaff2009-12-071-3/+8
|
* Initial implementation of OVSDB.Ben Pfaff2009-11-041-0/+128