Browse Source

Add wait_until_realized for security policies

Change-Id: I4ca75c8f419252ab14a4b510d0a47968c3ba16b9
changes/94/741094/1
asarfaty 3 weeks ago
committed by Adit Sarfaty
parent
commit
5ffd0c19d3
1 changed files with 10 additions and 0 deletions
  1. +10
    -0
      vmware_nsxlib/v3/policy/core_resources.py

+ 10
- 0
vmware_nsxlib/v3/policy/core_resources.py View File

@@ -3602,6 +3602,16 @@ class NsxPolicySecurityPolicyBaseApi(NsxPolicyResourceBase):
return self._get_realization_info(map_def, entity_type=entity_type,
silent=silent)

def wait_until_realized(self, domain_id, map_id, entity_type=None,
tenant=constants.POLICY_INFRA_TENANT,
sleep=None, max_attempts=None):
map_def = self.parent_entry_def(map_id=map_id,
domain_id=domain_id,
tenant=tenant)
return self._wait_until_realized(map_def, entity_type=entity_type,
sleep=sleep,
max_attempts=max_attempts)


class NsxPolicyCommunicationMapApi(NsxPolicySecurityPolicyBaseApi):
"""NSX Policy CommunicationMap (Under a Domain). AKA Security"""


Loading…
Cancel
Save