It does not seem to be used since Icehouse: the patch that removed its
last usage is:
1b36e2077141749495bb32b423f3df8cbbd0eb40
I don't think we should have it as part of abstract interface for
service plugins.
Change-Id: If03f67a617efd3a7cadb96d1a86283ac14088a83
@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
"""
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."""
from neutron.services import service_base
-DUMMY_PLUGIN_NAME = "dummy_plugin"
RESOURCE_NAME = "dummy"
COLLECTION_NAME = "%ss" % RESOURCE_NAME
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"
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