On 1/18/2012 10:40 AM, Ben Pfaff wrote:
On Wed, Jan 18, 2012 at 10:12:40AM -0800, Chuan Wang wrote:
I am trying the ovsdb-client command and having a question:

I did a transact like this:

sudo ~/work/ovs/openvswitch-1.3.0/ovsdb/ovsdb-client -v transact
'["Open_vSwitch", {"op" : "insert", "table" : "Controller", "row" :
{"local_gateway": "192.168.1.10", "local_ip": "192.168.1.20",
"local_netmask": "255.255.255.0", "target":"tcp:10.0.0.10"}}]'

I do see a reply without error:

[{"uuid":["uuid","35d9f3d4-8677-46e9-9e3a-2f7bd269c92a"]}]

However when I do a database dump, I don't see this controller is
created in database:
Your controller got garbage-collected (deleted) immediately as part of
the transaction, because the transaction did not add any reference to
it.
Thanks Ben for quick response! Really appreciate it.

How do I create a transaction so that the newly created "controller" is referred? I can see the "Bridge" has a column controller, but it requires the controller's uuid, which is created automatically and returned by ovsdb. Since the controller is GC'ed immediately after my transaction, seems like I cannot get a hold on it...

Thanks!

Chuan

_______________________________________________
discuss mailing list
[email protected]
http://openvswitch.org/mailman/listinfo/discuss

Reply via email to