NSX|V3+P: Use elevated context on lb creation

Change-Id: Ia953d510d89cee5c540509ff6553af871cc790ea
This commit is contained in:
asarfaty 2020-08-20 09:14:06 +02:00 committed by Adit Sarfaty
parent b486428800
commit d392d88c76
1 changed files with 1 additions and 1 deletions

View File

@ -51,7 +51,7 @@ def get_network_from_subnet(context, plugin, subnet_id):
@log_helpers.log_method_call
def get_router_from_network(context, plugin, subnet_id):
subnet = plugin.get_subnet(context, subnet_id)
subnet = plugin.get_subnet(context.elevated(), subnet_id)
network_id = subnet['network_id']
ports = plugin._get_network_interface_ports(
context.elevated(), network_id)