From 14da472efb4e2f4131f4f89a7e940d28f30a2ef4 Mon Sep 17 00:00:00 2001 From: Terry Wilson Date: Fri, 21 Apr 2017 14:24:55 -0500 Subject: [PATCH] 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 --- neutron/agent/ovsdb/impl_idl.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/neutron/agent/ovsdb/impl_idl.py b/neutron/agent/ovsdb/impl_idl.py index efda7317c73..23100b00ac1 100644 --- a/neutron/agent/ovsdb/impl_idl.py +++ b/neutron/agent/ovsdb/impl_idl.py @@ -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)