From 4333da8216e5546fb0c220c1042f31ed94e0a16c Mon Sep 17 00:00:00 2001 From: Adit Sarfaty Date: Thu, 27 Sep 2018 16:23:00 +0300 Subject: [PATCH] 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 --- vmware_nsx/services/dynamic_routing/bgp_plugin.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/vmware_nsx/services/dynamic_routing/bgp_plugin.py b/vmware_nsx/services/dynamic_routing/bgp_plugin.py index 74c51c4bf2..01ead01a2b 100644 --- a/vmware_nsx/services/dynamic_routing/bgp_plugin.py +++ b/vmware_nsx/services/dynamic_routing/bgp_plugin.py @@ -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()