Merge "Use elevated context to update router's external gateway"

This commit is contained in:
Zuul 2022-01-31 20:43:19 +00:00 committed by Gerrit Code Review
commit e7b70521d0
1 changed files with 1 additions and 1 deletions

View File

@ -748,7 +748,7 @@ class NeutronDbPluginV2(db_base_plugin_common.DbBasePluginCommon,
external_gateway_info['external_fixed_ips'].append(
{'subnet_id': subnet['id']})
info = {'router': {'external_gateway_info': external_gateway_info}}
l3plugin.update_router(context, router_id, info)
l3plugin.update_router(ctx_admin, router_id, info)
@db_api.retry_if_session_inactive()
def _create_subnet_postcommit(self, context, result,