From b934462ccb52532e5492e8c28abdcb729b3a9dad Mon Sep 17 00:00:00 2001 From: Kobi Samoray Date: Thu, 25 Jan 2018 13:39:12 +0200 Subject: [PATCH] NSXv3: allow use api_workers=-1 Doing that failed to initialize fwaas callbacks Change-Id: I5594a5ecd72c10e4d7caf96920a7d418010f52d5 --- vmware_nsx/plugins/nsx_v3/plugin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vmware_nsx/plugins/nsx_v3/plugin.py b/vmware_nsx/plugins/nsx_v3/plugin.py index e6a4ecd8d6..ae6cdc73f7 100644 --- a/vmware_nsx/plugins/nsx_v3/plugin.py +++ b/vmware_nsx/plugins/nsx_v3/plugin.py @@ -213,6 +213,7 @@ class NsxV3Plugin(agentschedulers_db.AZDhcpAgentSchedulerDbMixin, router=l3_db_models.Router, floatingip=l3_db_models.FloatingIP) def __init__(self): + self.fwaas_callbacks = None self._is_sub_plugin = tvd_utils.is_tvd_core_plugin() self.init_is_complete = False nsxlib_utils.set_is_attr_callback(validators.is_attr_set) @@ -354,7 +355,6 @@ class NsxV3Plugin(agentschedulers_db.AZDhcpAgentSchedulerDbMixin, }) def _init_fwaas(self): - self.fwaas_callbacks = None if fwaas_utils.is_fwaas_v1_plugin_enabled(): LOG.info("NSXv3 FWaaS v1 plugin enabled") self.fwaas_callbacks = fwaas_callbacks_v1.Nsxv3FwaasCallbacksV1()