From e949b0fddf8b74a53366c02535acc72f32043eb1 Mon Sep 17 00:00:00 2001 From: asarfaty Date: Thu, 16 Jul 2020 09:03:27 +0200 Subject: [PATCH] NSX|P: improve security rules creation performance Call the api under transaction without child rules Change-Id: Ibb891b2c31e756b2813d55635a80e5a0ac658ae8 --- vmware_nsx/plugins/nsx_p/plugin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vmware_nsx/plugins/nsx_p/plugin.py b/vmware_nsx/plugins/nsx_p/plugin.py index 8c8daa73c4..34ed9682de 100644 --- a/vmware_nsx/plugins/nsx_p/plugin.py +++ b/vmware_nsx/plugins/nsx_p/plugin.py @@ -3972,7 +3972,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)