From 3edca83f838154a5956b210357206acf71f33aa0 Mon Sep 17 00:00:00 2001 From: Slawek Kaplonski Date: Thu, 27 Aug 2020 22:21:56 +0200 Subject: [PATCH] Switch to new engine facade in L3 router's driver_controller module Partially-Implements blueprint: enginefacade-switch Change-Id: Ic11a3b1307ed3a3365d53bf5afda4b5cb6cb01d3 --- .../services/l3_router/service_providers/driver_controller.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/neutron/services/l3_router/service_providers/driver_controller.py b/neutron/services/l3_router/service_providers/driver_controller.py index 6c834a6f1b7..ad2cc1339e1 100644 --- a/neutron/services/l3_router/service_providers/driver_controller.py +++ b/neutron/services/l3_router/service_providers/driver_controller.py @@ -190,7 +190,7 @@ class DriverController(object): router = self.l3_plugin.get_router(context, router_id) driver = self._attrs_to_driver(router) driver_name = driver.name - with context.session.begin(subtransactions=True): + with db_api.CONTEXT_WRITER.using(context): self._stm.add_resource_association( context, plugin_constants.L3, driver_name, router_id)