ovs-vsctl: reconnect to the database if connection was dropped
authorAnsis Atteka <aatteka@nicira.com>
Tue, 18 Feb 2014 21:19:36 +0000 (13:19 -0800)
committerAnsis Atteka <aatteka@nicira.com>
Wed, 19 Feb 2014 22:01:05 +0000 (14:01 -0800)
commit705d7a393005054a78ede0394b0f7451e60136b4
tree5e481bd24956a00446dbfd47988dc2b24d7f5a27
parentd709419e9dd939f11def1aee1d87d9002df062df
ovs-vsctl: reconnect to the database if connection was dropped

If ovs-vsctl has to wait for ovs-vswitchd to reconfigure itself
according to the new database, then sometimes ovs-vsctl could
end up stuck in the event loop if OVSDB connection was dropped
while ovs-vsctl was still running.

This patch fixes this problem by letting ovs-vsctl to reconnect
to the OVSDB, if it has to wait cur_cfg field to be updated.

Issue: 1191997
Reported-by: Spiro Kourtessis <spiro@nicira.com>
Signed-Off-By: Ansis Atteka <aatteka@nicira.com>
lib/jsonrpc.c
lib/jsonrpc.h
lib/ovsdb-idl.c
lib/ovsdb-idl.h
utilities/ovs-vsctl.c