Migrate to new engine facade in the L3 extension UT module
Partially-Implements blueprint: enginefacade-switch Change-Id: Idae12136e043031485694b95f8102e9f301094cc
This commit is contained in:
parent
5529b2f5cc
commit
23738d0df7
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user