NSX|P: Fix LB creation with differnet router owner

Change-Id: I992d191065791b78211b21b700233c1e09a0d18b
This commit is contained in:
asarfaty 2021-02-25 11:21:14 +02:00 committed by Adit Sarfaty
parent f5f04e0604
commit 479d0b9419
1 changed files with 2 additions and 1 deletions

View File

@ -83,7 +83,8 @@ class EdgeLoadBalancerManagerFromDict(base_mgr.NsxpLoadbalancerBaseManager):
# Create the Tier1 service router if it does not exist
if not self.core_plugin.service_router_has_services(
context.elevated(), router_id):
self.core_plugin.create_service_router(context, router_id)
self.core_plugin.create_service_router(
context.elevated(), router_id)
if not lb_service:
lb_name = p_utils.get_service_lb_name(lb, router_id)