aboutsummaryrefslogtreecommitdiff
path: root/lib/ovsdb-data.h
AgeCommit message (Collapse)Author
2013-04-01ovsdb-data: New functions for predicting serialized length of data.Ben Pfaff
These will be used for the first time in an upcoming commit. Signed-off-by: Ben Pfaff <blp@nicira.com>
2012-07-18system-stats: Use "smap" instead of "shash".Ben Pfaff
"smap" is now the appropriate data structure for a string-to-string map. Also changes ovsdb_datum_from_shash() into ovsdb_datum_from_smap() since system-stats related code was the only client. Signed-off-by: Ben Pfaff <blp@nicira.com>
2012-05-02Global replace of Nicira Networks.Raju Subramanian
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>
2011-03-10ovsdb: Implement garbage collection.Ben Pfaff
2011-03-10ovsdb-data: Expose guts of ovsdb_symbol_table() to clients.Ben Pfaff
ovs-vsctl will, in upcoming commits, want to more closely examine its ovsdb_symbol_table structures. This could be done by providing a more complete API, but it doesn't seem worth it to me. This commit instead goes the other way, exposing the internals to clients. This commit also eliminates the ovsdb_symbol_table_find_uncreated() function, which ovs-vsctl can now implement itself.
2011-03-10ovsdb-data: Rename 'used' to 'created' in struct ovsdb_symbol.Ben Pfaff
The name 'created' better reflects the actual meaning of this member: in both ovsdb and ovs-vsctl, it is true if a row has been created with the symbol's UUID and false otherwise.
2011-02-08table: Add new "bare" output formatting options.Ben Pfaff
--format=list corresponds to the output format that "ovs-vsctl list" has always used. --bare is easier for scripts to parse.
2010-09-23ovsdb-data: New function ovsdb_datum_from_shash().Ben Pfaff
2010-08-25ovsdb: Remove unused ovsdb_datum_from_json_unique().Ben Pfaff
This function was not used outside of the test-ovsdb program. It seems like we might as well remove it.
2010-07-12ovsdb: New functions ovsdb_datum_sort_unique(), ovsdb_datum_from_json_unique().Ben Pfaff
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.
2010-07-12ovsdb: New functions ovsdb_atom_default(), ovsdb_datum_default().Ben Pfaff
Having access to const copies of default atoms and data will allow OVSDB code to avoid memory allocations and reduce copying in upcoming commits.
2010-07-12ovsdb: Document some ovsdb-data.[ch] functions.Ben Pfaff
2010-06-17ovs-vsctl: Support references among records at creation time.Ben Pfaff
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.
2010-02-25ovsdb: Add support for "enum" constraints.Ben Pfaff
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.
2010-02-08ovsdb: Get rid of "declare" operation.Ben Pfaff
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.
2010-02-08ovsdb: Add simple constraints.Ben Pfaff
2010-01-27ovs-vsctl: Make parsing functions return error instead of aborting.Ben Pfaff
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.
2010-01-26ovsdb-datum: Add functions for parsing and formatting atoms, data.Ben Pfaff
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.
2010-01-26ovsdb-data: Add some more functions for dealing with "struct ovsdb_datum".Ben Pfaff
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.
2010-01-11ovsdb: Improve comments.Ben Pfaff
Suggested by Justin Pettit.
2010-01-11ovsdb: Save some space in the log for newly inserted records.Ben Pfaff
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.)
2009-12-16ovsdb: Add new "mutation" operation to transactions.Ben Pfaff
2009-12-07ovsdb: Implement new "declare" operation.Ben Pfaff
2009-11-04Initial implementation of OVSDB.Ben Pfaff