NSX|P: improve security rules creation performance

Call the api under transaction without child rules

Change-Id: Ibb891b2c31e756b2813d55635a80e5a0ac658ae8
This commit is contained in:
asarfaty 2020-07-16 09:03:27 +02:00 committed by Adit Sarfaty
parent 0520483e2c
commit 30ed198386
1 changed files with 1 additions and 1 deletions

View File

@ -3985,7 +3985,7 @@ class NsxPolicyPlugin(nsx_plugin_common.NsxPluginV3Base):
# Update the policy with all the rules.
self.nsxpolicy.comm_map.update_with_entries(
NSX_P_GLOBAL_DOMAIN_ID, sg_id, entries=backend_rules,
category=category)
category=category, use_child_rules=False)
self._run_under_transaction(_do_update_rules)