# neutron_lib.services.base module

class neutron_lib.services.base.ServicePluginBase

  Bases: `WorkerBase`

  Define base interface for any Advanced Service plugin.

  abstractmethod get_plugin_description()

    Return string description of the plugin.

  abstractmethod get_plugin_type()

    Return one of predefined service types.

  supported_extension_aliases = []

class neutron_lib.services.base.WorkerBase

  Bases: `object`

  add_worker(worker)

    Adds NeutronWorker needed for this service

    If a object needs to define workers thread/processes outside of API/RPC workers then it will call this method to register worker. Should be called on initialization stage before running services

  add_workers(workers)

    Adds NeutronWorker list needed for this service

    The same as add_worker but adds a list of workers

  get_workers()

    Returns a collection NeutronWorker instances needed by this service.

this page last updated: 2026-03-03 11:51:03

Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.

found an error? report a bug