Migrate to new engine facade in the L3 extension UT module

Partially-Implements blueprint: enginefacade-switch

Change-Id: Idae12136e043031485694b95f8102e9f301094cc
This commit is contained in:
Slawek Kaplonski 2020-12-01 11:26:34 +01:00
parent 5529b2f5cc
commit 23738d0df7
1 changed files with 1 additions and 2 deletions

View File

@ -283,8 +283,7 @@ class TestL3NatBasePlugin(TestL3PluginBaseAttributes,
def update_port(self, context, id, port):
original_port = self.get_port(context, id)
session = context.session
with session.begin(subtransactions=True):
with db_api.CONTEXT_WRITER.using(context):
new_port = super(TestL3NatBasePlugin, self).update_port(
context, id, port)
# Notifications must be sent after the above transaction is complete