Update vs/lbpool delete api to support hierarchical API
Update VirtualServer/LoadBalancerPool delete api to support hierarchical API so VirtualServer/LoadBalancerPool will be deleted in one thread to reduce nsxt waiting time and improve performance Change-Id: If936aa1ce56c57a8b8a64f93f9b74ca180cec645
This commit is contained in:
parent
7624236634
commit
ddb2cfc990
@ -501,7 +501,7 @@ class NsxPolicyLoadBalancerPoolApi(NsxPolicyResourceBase):
|
||||
tenant=constants.POLICY_INFRA_TENANT):
|
||||
lb_pool_def = self.entry_def(
|
||||
lb_pool_id=lb_pool_id, tenant=tenant)
|
||||
self._delete_with_retry(lb_pool_def)
|
||||
self._delete_or_store(lb_pool_def)
|
||||
|
||||
def get(self, lb_pool_id, tenant=constants.POLICY_INFRA_TENANT,
|
||||
silent=False):
|
||||
@ -829,7 +829,7 @@ class NsxPolicyLoadBalancerVirtualServerAPI(NsxPolicyResourceBase):
|
||||
tenant=constants.POLICY_INFRA_TENANT):
|
||||
lbvs_def = self.entry_def(
|
||||
virtual_server_id=virtual_server_id, tenant=tenant)
|
||||
self._delete_with_retry(lbvs_def)
|
||||
self._delete_or_store(lbvs_def)
|
||||
|
||||
def get(self, virtual_server_id,
|
||||
tenant=constants.POLICY_INFRA_TENANT, silent=False):
|
||||
|
Loading…
x
Reference in New Issue
Block a user