Merge "Minor fix to remove legacy OVSDB IDL connection"

This commit is contained in:
Zuul 2018-01-26 09:40:30 +00:00 committed by Gerrit Code Review
commit c13511ae50
1 changed files with 3 additions and 9 deletions

View File

@ -45,15 +45,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)