NSX|V3 fix lbaas get plugin code

Change-Id: I5ec839d96002e8ee75554d86ad93b984c33fe960
This commit is contained in:
Adit Sarfaty 2017-11-12 10:13:42 +02:00
parent e68c57edca
commit a3c36550d1
1 changed files with 9 additions and 9 deletions

View File

@ -33,29 +33,29 @@ class LoadbalancerBaseManager(object):
@property
def lbv2_driver(self):
if not LoadbalancerBaseManager._lbv2_driver:
if not self._lbv2_driver:
plugin = self._get_plugin(
plugin_const.LOADBALANCERV2)
LoadbalancerBaseManager._lbv2_driver = (
self._lbv2_driver = (
plugin.drivers['vmwareedge'])
return LoadbalancerBaseManager._lbv2_driver
return self._lbv2_driver
@property
def core_plugin(self):
if not LoadbalancerBaseManager._core_plugin:
LoadbalancerBaseManager._core_plugin = (
if not self._core_plugin:
self._core_plugin = (
self._get_plugin(plugin_const.CORE))
return LoadbalancerBaseManager._core_plugin
return self._core_plugin
@property
def flavor_plugin(self):
if not LoadbalancerBaseManager._flavor_plugin:
LoadbalancerBaseManager._flavor_plugin = (
if not self._flavor_plugin:
self._flavor_plugin = (
self._get_plugin(plugin_const.FLAVORS))
return LoadbalancerBaseManager._flavor_plugin
return self._flavor_plugin
class EdgeLoadbalancerBaseManager(LoadbalancerBaseManager):