[ovs-discuss] ovsdb jsonrpc: referential integrity

Ben Pfaff blp at nicira.com
Tue Mar 26 15:42:47 UTC 2013


On Tue, Mar 26, 2013 at 07:21:12PM +0400, Boris Tobotras wrote:
> I'm playing with ovsdb's jsonrpc API. What I'm trying to do first is
> to create new bridge. To do that I need to create a port and an
> interface first if I understand correctly. Trying to do that I got
> this:
> 
> me>ovsdb: {"method":"transact","params":["Open_vSwitch",{"op":"insert","table":"Interface","row":{"name":"paci1face","type":"internal","_uuid":["uuid","02807bab-47f8-482d-be63-66a570bf73c3"]}}],"id":4}
> 
> me<ovsdb: {:id 4, :error nil, :result [{:uuid ["uuid"
> "df6ce11d-6a09-496e-9433-5ce38818fb7a"]}]}

The Interface row was created with the specified uuid, but it was
deleted immediately as part of transaction commit by the garbage
collector because it was unreferenced.  To keep it from being garbage
collected, create a Port that references it and add a reference to the
Port from a Bridge in the same transaction.



More information about the discuss mailing list