TVD LBaaS fix for core plugin
For the TVD drivers, we need to get the relevant V/V3 core plugin This support was neglected when we refactored the LBaaS drivers recently. Change-Id: I02c96ccdd23d1470c6d8a3945c6e0dea071a20d2
This commit is contained in:
parent
2633ec0607
commit
d8a611316e
@ -19,6 +19,8 @@ from neutron_lib import exceptions as n_exc
|
||||
from neutron_lib.plugins import constants as plugin_const
|
||||
from neutron_lib.plugins import directory
|
||||
|
||||
from vmware_nsx.extensions import projectpluginmap
|
||||
|
||||
|
||||
class LBaaSNSXObjectManagerWrapper(object):
|
||||
"""Wrapper class to connect the LB api with the NSX-V/V3 implementations
|
||||
@ -44,7 +46,10 @@ class LBaaSNSXObjectManagerWrapper(object):
|
||||
if not self._core_plugin:
|
||||
self._core_plugin = (
|
||||
self._get_plugin(plugin_const.CORE))
|
||||
|
||||
if self._core_plugin.is_tvd_plugin():
|
||||
# get the plugin that match this driver
|
||||
self._core_plugin = self._core_plugin.get_plugin_by_type(
|
||||
projectpluginmap.NsxPlugins.NSX_T)
|
||||
return self._core_plugin
|
||||
|
||||
def get_completor_func(self, context, obj, delete=False):
|
||||
|
Loading…
Reference in New Issue
Block a user