On Fri, Sep 05, 2014 at 01:55:08PM +0800, ychen wrote:
> Then there is another question, how can I delete a port with its name? As you
> see, in the above command, I must use the "uuid" to delete port from bridge
> table. Is there a simple way to use "select" and "mutate" to delete port with
> name? like this:
> ovsdb-client transact
> "["Open_vSwitch",{"mutations":[["ports","delete",["uuid","{"columns":["_uuid"],"table":"Port","where":[["name","==","p0"]],"op":"select"}"]]],
> "table":"Bridge",
> "where":[["_uuid","==",["uuid","a24d9a54-c30c-4224-906d-d0af73c53094"]]],
> "op":"mutate"}]"
There may not be. OVSDB is not designed to be as general-purpose as,
say, SQL, in terms of the power of a transaction. It is designed for
clients to retrieve the information they need, then to make the
changes they want to make while checking prerequisites, as necessary,
to ensure that the transaction is atomic.
_______________________________________________
discuss mailing list
[email protected]
http://openvswitch.org/mailman/listinfo/discuss