diff options
author | Ben Pfaff <blp@ovn.org> | 2017-09-01 15:03:34 -0700 |
---|---|---|
committer | Ben Pfaff <blp@ovn.org> | 2018-03-24 12:04:51 -0700 |
commit | 00d5d6310da15bf0530cb9a7a73acce325636b44 (patch) | |
tree | cf6b091f09f3ff4159061c1e8ca415c8f4f0470e /ovn/utilities | |
parent | 1456335dc59917535a5bc6c3fc74231395100263 (diff) | |
download | openvswitch-00d5d6310da15bf0530cb9a7a73acce325636b44.tar.gz |
ovn-sbctl: Allow retries by default.
Most of the OVS database-manipulation utilities (ovn-sbctl, ovn-nbctl,
ovs-vsctl, vtep-ctl) don't retry their connections by default because
they assume that the database is either up or down and likely to stay
that way. The OVN southbound database, however, is a likely candidate
for high availability clustering, so that even if it appears to be
down for a moment it will be available again soon. So, prepare for
the clustering implementation by enabling retry by default in
ovn-sbctl.
Signed-off-by: Ben Pfaff <blp@ovn.org>
Acked-by: Justin Pettit <jpettit@ovn.org>
Diffstat (limited to 'ovn/utilities')
-rw-r--r-- | ovn/utilities/ovn-sbctl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ovn/utilities/ovn-sbctl.c b/ovn/utilities/ovn-sbctl.c index 32ce71def..ab498ec67 100644 --- a/ovn/utilities/ovn-sbctl.c +++ b/ovn/utilities/ovn-sbctl.c @@ -121,7 +121,7 @@ main(int argc, char *argv[]) } /* Initialize IDL. */ - idl = the_idl = ovsdb_idl_create(db, &sbrec_idl_class, false, false); + idl = the_idl = ovsdb_idl_create(db, &sbrec_idl_class, false, true); run_prerequisites(commands, n_commands, idl); /* Execute the commands. |