Cleanup get_plugin_name() from the tree

It does not seem to be used since Icehouse: the patch that removed its
last usage is: 1b36e20771

I don't think we should have it as part of abstract interface for
service plugins.

Change-Id: If03f67a617efd3a7cadb96d1a86283ac14088a83
This commit is contained in:
Ihar Hrachyshka 2015-06-23 14:28:59 +02:00
parent 23836f6716
commit b7dc34ef15
4 changed files with 0 additions and 19 deletions

View File

@ -137,9 +137,6 @@ class Metering(extensions.ExtensionDescriptor):
@six.add_metaclass(abc.ABCMeta)
class MeteringPluginBase(service_base.ServicePluginBase):
def get_plugin_name(self):
return constants.METERING
def get_plugin_description(self):
return constants.METERING

View File

@ -41,15 +41,6 @@ class ServicePluginBase(extensions.PluginInterface):
"""
pass
@abc.abstractmethod
def get_plugin_name(self):
"""Return a symbolic name for the plugin.
Each service plugin should have a symbolic name. This name
will be used, for instance, by service definitions in service types
"""
pass
@abc.abstractmethod
def get_plugin_description(self):
"""Return string description of the plugin."""

View File

@ -24,7 +24,6 @@ from neutron.plugins.common import constants
from neutron.services import service_base
DUMMY_PLUGIN_NAME = "dummy_plugin"
RESOURCE_NAME = "dummy"
COLLECTION_NAME = "%ss" % RESOURCE_NAME
@ -101,9 +100,6 @@ class DummyServicePlugin(service_base.ServicePluginBase):
def get_plugin_type(self):
return constants.DUMMY
def get_plugin_name(self):
return DUMMY_PLUGIN_NAME
def get_plugin_description(self):
return "Neutron Dummy Service Plugin"

View File

@ -32,9 +32,6 @@ from neutron.tests.unit import dummy_plugin as dp
from neutron.tests.unit import testlib_api
DEFAULT_SERVICE_DEFS = [{'service_class': constants.DUMMY,
'plugin': dp.DUMMY_PLUGIN_NAME}]
_uuid = test_base._uuid
_get_path = test_base._get_path