Browse Source

Ensure multicast can be set in a transaction

Use _create_or_store in place of create_or_update to set
multicast on a Tier-1 gateway

Change-Id: Ib58b3944c02b14ebf4b65fe1871fa453ad2cd888
changes/72/768372/1
Salvatore Orlando 1 year ago
parent
commit
1e1b5da052
  1. 2
      vmware_nsxlib/v3/policy/core_resources.py

2
vmware_nsxlib/v3/policy/core_resources.py

@ -1344,7 +1344,7 @@ class NsxPolicyTier1Api(NsxPolicyResourceBase):
'enabled': enabled,
'tenant': tenant}
mcast_def = core_defs.Tier1MulticastDef(**args)
self.policy_api.create_or_update(mcast_def)
self._create_or_store(mcast_def)
def enable_multicast(self, tier1_id, service_id=None,
tenant=constants.POLICY_INFRA_TENANT):

Loading…
Cancel
Save