[ovs-discuss] JSON RPC Requests -mutate and "where" condition
Ben Pfaff
blp at nicira.com
Thu Jul 18 22:06:35 UTC 2013
On Thu, Jul 18, 2013 at 05:52:58PM -0400, Dmita Levy wrote:
> Hello,
>
> I was looking through the IETF draft document for making JSON RPC request
> to OVS and noticed the following:
>
> *"where": [<condition>*] required*
>
> I don't quite understand what should be in the [<condition>*] array
> that is sent with the request. This mutate request is doing what
> exactly?
>
> "op" : "mutate",
> "table" : "Bridge",
> "where" : [
> [
> "_uuid",
> "==",
> [
> "uuid",
> "18d02a5e-6150-4ddf-9446-a8e7e87f7955"
> ]
> ]
> ],
This "where" clause says to match only rows that have UUID
18d02a5e-6150-4ddf-9446-a8e7e87f7955 in the _uuid column (which will
be exactly zero or one rows).
More information about the discuss
mailing list