X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=ovsdb%2FSPECS;h=97f988265947ec7508f581385035231cc14f97b2;hb=2e9d1b61b32867cf1343b3f1865610606d83adf5;hp=d9c92dead942ae7aded4f09f7bd160689471c168;hpb=20aa445d66ace847aa2945b372cc8d3c0e9b034b;p=openvswitch diff --git a/ovsdb/SPECS b/ovsdb/SPECS index d9c92dea..97f98826 100644 --- a/ovsdb/SPECS +++ b/ovsdb/SPECS @@ -33,6 +33,11 @@ values. Additional notation is presented later. s that begin with _ are reserved to the implementation and may not be used by the user. + + + A JSON string that contains a version number that matches + [0-9]+\.[0-9]+\.[0-9]+ + A JSON true or false value. @@ -102,6 +107,7 @@ is represented by , as described below. A JSON object with the following members: "name": required + "version": required "tables": {: , ...} required The "name" identifies the database as a whole. It must be @@ -109,6 +115,12 @@ is represented by , as described below. operated on. The value of "tables" is a JSON object whose names are table names and whose values are s. + The "version" reports the version of the database schema. Because + this is a recent addition to the schema format, OVSDB permits it + to be omitted, but future versions of OVSDB will require it to be + present. Open vSwitch semantics for "version" are described in + ovs-vswitchd.conf.db(5). + A JSON object with the following members: @@ -149,11 +161,14 @@ is represented by , as described below. "type": required "ephemeral": optional + "mutable": optional The "type" specifies the type of data stored in this column. If "ephemeral" is specified as true, then this column's values are not guaranteed to be durable; they may be lost when the database - restarts. + restarts. If "mutable" is specified as false, then this column's + values may not be modified after they are initially set with the + "insert" operation. @@ -192,7 +207,7 @@ is represented by , as described below. "minInteger": optional, integers only "maxInteger": optional, integers only "minReal": optional, reals only - "maxReal": optional, reals only + "maxReal": optional, reals only "minLength": optional, strings only "maxLength": optional, strings only "refTable": optional, uuids only @@ -416,7 +431,7 @@ Response object members: This JSON-RPC notification instructs the database server to immediately complete or cancel the "transact" request whose "id" is -the same as the notification's "params" value. +the same as the notification's "params" value. If the "transact" request can be completed immediately, then the server sends a response in the form described for "transact", above. @@ -928,7 +943,7 @@ Semantics: column specified in "row". The "_uuid" and "_version" columns of a table may not be directly - updated with this operation. Columns designated read-only in the + updated with this operation. Columns designated read-only in the schema also may not be updated. The "count" member of the result specifies the number of rows @@ -1042,7 +1057,7 @@ Semantics: restarted later, after a change in the database makes it possible for the operation to succeed. The client will not receive a response until the operation permanently succeeds or fails. - + If "until" is "!=", the sense of the test is negated. That is, as long as the query on "table" specified by "where" and "columns" returns "rows", the transaction will be rolled back and restarted