Add deperecated reference to impl_idl.Transaction

networking-ovn subclassed the Tranaction class, so we need to
keep a reference to it until they too switch to ovsdbapp.

Change-Id: Ifd922fe5d84778d402c4e877d64ac53ee3d6c1ce
This commit is contained in:
Terry Wilson 2017-04-21 14:24:55 -05:00
parent 0479f0f9d2
commit 14da472efb
1 changed files with 4 additions and 1 deletions

View File

@ -14,6 +14,7 @@
from debtcollector import moves
from oslo_config import cfg
from ovsdbapp.backend.ovs_idl import transaction
from ovsdbapp.schema.open_vswitch import impl_idl
from neutron.agent.ovsdb.native import connection
@ -30,8 +31,10 @@ VswitchdInterfaceAddException = moves.moved_class(
'VswitchdInterfaceAddException',
__name__)
ovs_conf.register_ovs_agent_opts()
Transaction = moves.moved_class(transaction.Transaction,
'Transaction', __name__)
ovs_conf.register_ovs_agent_opts()
_connection = connection.Connection(idl_factory=connection.idl_factory,
timeout=cfg.CONF.ovs_vsctl_timeout)