Minor fix to remove legacy OVSDB IDL connection

Upon failure to create an OVSDB connection using IDL with the ovsdbapp
lib, a second attempt will be executed using legacy ovsdapp connection
api.  This patch removes the legacy connection attempt.

Change-Id: I07477ec92ba5e95794f91bf67cab97e9dca89dde
Signed-off-by: Tim Rozet <trozet@redhat.com>
This commit is contained in:
Tim Rozet 2018-01-23 09:09:50 -05:00
parent c46eb76394
commit e35a0db136
1 changed files with 3 additions and 9 deletions

View File

@ -42,15 +42,9 @@ _connection = None
def api_factory(context):
global _connection
if _connection is None:
try:
_connection = connection.Connection(
idl=n_connection.idl_factory(),
timeout=cfg.CONF.OVS.ovsdb_timeout)
except TypeError:
#pylint: disable=unexpected-keyword-arg,no-value-for-parameter
_connection = connection.Connection(
idl_factory=n_connection.idl_factory, # noqa
timeout=cfg.CONF.OVS.ovsdb_timeout)
_connection = connection.Connection(
idl=n_connection.idl_factory(),
timeout=cfg.CONF.OVS.ovsdb_timeout)
return NeutronOvsdbIdl(_connection)