From 77688b9934fd61c7c1ada52da92252b12979bbee Mon Sep 17 00:00:00 2001 From: Shawn Wang Date: Mon, 17 Apr 2023 17:33:08 -0700 Subject: [PATCH] Enable H-API delete for Policy Tier1 Api This change adds hierarchical call support for deleting Policy Tier1. H-API is already enabled for Tier1 creation. The change has no impact for callers not using H-API for delete. Change-Id: Ib36a0faa125b2c12c206b7c6c9ebc3bd0e04330e --- vmware_nsxlib/v3/policy/core_resources.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vmware_nsxlib/v3/policy/core_resources.py b/vmware_nsxlib/v3/policy/core_resources.py index baf27507..189bf05d 100644 --- a/vmware_nsxlib/v3/policy/core_resources.py +++ b/vmware_nsxlib/v3/policy/core_resources.py @@ -1136,7 +1136,7 @@ class NsxPolicyTier1Api(NsxPolicyResourceBase): def delete(self, tier1_id, tenant=constants.POLICY_INFRA_TENANT): tier1_def = self.entry_def(tier1_id=tier1_id, tenant=tenant) - self._delete_with_retry(tier1_def) + self._delete_or_store(tier1_def) def get(self, tier1_id, tenant=constants.POLICY_INFRA_TENANT, silent=False):