# -*- coding: utf-8 -*-
from __future__ import absolute_import
-
-from six import add_metaclass
-
-
-class ServiceMeta(type):
- @property
- def mgr(cls):
- """
- :return: Returns the MgrModule instance of this Ceph dashboard module.
- """
- return cls._mgr_module
-
- @mgr.setter
- def mgr(cls, value):
- """
- :param value: The MgrModule instance of the Ceph dashboard module.
- """
- cls._mgr_module = value
-
-
-@add_metaclass(ServiceMeta)
-class Service(object):
- """
- Base class for all services.
- """
- _mgr_module = None
-
- @property
- def mgr(self):
- """
- :return: Returns the MgrModule instance of this Ceph module.
- """
- return self._mgr_module
# -*- coding: utf-8 -*-
from __future__ import absolute_import
-from . import Service
from .. import mgr
-class CephService(Service):
+class CephService(object):
@classmethod
def get_service_map(cls, service_name):
service_map = {}
from ..controllers.auth import Auth
from ..controllers.summary import Summary
from ..controllers.rbd_mirroring import RbdMirror
-from ..services import Service
from ..tools import SessionExpireAtBrowserCloseTool
from .helper import ControllerTestCase
from .. import mgr
from ..controllers.auth import Auth
-from ..services import Service
from ..tools import SessionExpireAtBrowserCloseTool
from ..controllers.tcmu_iscsi import TcmuIscsi
from .helper import ControllerTestCase