NSX|V: Fix BGP plugin get operations
The TVD integration for the BGP plugin tried to filter get results based on the plugin type. Since the same plugin is also used for the V plugin, it failed. This patch removes this filtering code since BGP is currently supported only by the NSX-V anyway. Change-Id: I20ef5e1763cab28b1e12b03a75e24bbf50f394dc
This commit is contained in:
parent
c2e38a3d28
commit
4333da8216
@ -30,14 +30,12 @@ from vmware_nsx.common import nsxv_constants
|
||||
from vmware_nsx.db import nsxv_db
|
||||
from vmware_nsx.extensions import edge_service_gateway_bgp_peer as ext_esg
|
||||
from vmware_nsx.extensions import projectpluginmap
|
||||
from vmware_nsx.plugins.nsx import utils as tvd_utils
|
||||
from vmware_nsx.services.dynamic_routing.nsx_v import driver as nsxv_driver
|
||||
|
||||
LOG = logging.getLogger(__name__)
|
||||
PLUGIN_NAME = bgp_ext.BGP_EXT_ALIAS + '_nsx_svc_plugin'
|
||||
|
||||
|
||||
@tvd_utils.filter_plugins
|
||||
class NSXBgpPlugin(service_base.ServicePluginBase, bgp_db.BgpDbMixin):
|
||||
"""BGP service plugin for NSX-V as well as TVD plugins.
|
||||
|
||||
@ -47,9 +45,6 @@ class NSXBgpPlugin(service_base.ServicePluginBase, bgp_db.BgpDbMixin):
|
||||
supported_extension_aliases = [bgp_ext.BGP_EXT_ALIAS,
|
||||
ext_esg.ESG_BGP_PEER_EXT_ALIAS]
|
||||
|
||||
methods_to_separate = ['get_bgp_speakers',
|
||||
'get_bgp_peers']
|
||||
|
||||
def __init__(self):
|
||||
super(NSXBgpPlugin, self).__init__()
|
||||
self._core_plugin = directory.get_plugin()
|
||||
|
Loading…
Reference in New Issue
Block a user