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
This commit is contained in:
Salvatore Orlando 2020-12-23 14:30:39 -08:00
parent f6f86385ae
commit 1e1b5da052
1 changed files with 1 additions and 1 deletions

View File

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