NSXv3: allow use api_workers=-1

Doing that failed to initialize fwaas callbacks

Change-Id: I5594a5ecd72c10e4d7caf96920a7d418010f52d5
This commit is contained in:
Kobi Samoray 2018-01-25 13:39:12 +02:00
parent 913dbe467e
commit b934462ccb

View File

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