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
changes/95/880695/1 19.4.0
Shawn Wang 2023-04-17 17:33:08 -07:00
parent ce621cfc80
commit 77688b9934
No known key found for this signature in database
GPG Key ID: C98A86CC967E89A7
1 changed files with 1 additions and 1 deletions

View File

@ -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):