Merge "Remove retry from tier1 creation"
This commit is contained in:
commit
c225bfd751
@ -708,14 +708,7 @@ class NsxPolicyTier1Api(NsxPolicyResourceBase):
|
|||||||
route_advertisement=route_advertisement,
|
route_advertisement=route_advertisement,
|
||||||
tenant=tenant)
|
tenant=tenant)
|
||||||
|
|
||||||
# Note(asarfaty): Although this is a patch request, it sometimes fail
|
self._create_or_store(tier1_def)
|
||||||
# with StaleRevision on communication maps conflicts
|
|
||||||
@utils.retry_upon_exception(
|
|
||||||
exceptions.StaleRevision,
|
|
||||||
max_attempts=self.policy_api.client.max_attempts)
|
|
||||||
def _create():
|
|
||||||
self._create_or_store(tier1_def)
|
|
||||||
_create()
|
|
||||||
return tier1_id
|
return tier1_id
|
||||||
|
|
||||||
def delete(self, tier1_id, tenant=constants.POLICY_INFRA_TENANT):
|
def delete(self, tier1_id, tenant=constants.POLICY_INFRA_TENANT):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user