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 21:31:59 +0000 (13:31 -0800)
commit0983dbe8e420b548272b88d2fe974f0c44019a7a
treec8b86c61ae2aa9a024c64078d20c98dd9a10ee01
parentf090a19fffacb067fd296c89462a417f59cd9135
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