Spdk/python/spdk/sma/device/device.py
Konrad Sztyber 784815ea3a sma: handle QoS requests in the generic layer
The generic layer will now handle the SetQoS and GetQosCapabilities
requests.

Signed-off-by: Konrad Sztyber <konrad.sztyber@intel.com>
Change-Id: Icb4c916d3624c3943e2da74d6dbcc3261f90391d
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/14267
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Karol Latecki <karol.latecki@intel.com>
2022-09-22 12:38:37 +00:00

39 lines
879 B
Python

from ..proto import sma_pb2
class DeviceException(Exception):
def __init__(self, code, message):
self.code = code
self.message = message
class DeviceManager:
def __init__(self, name, protocol, client):
self._client = client
self.protocol = protocol
self.name = name
def init(self, config):
pass
def create_device(self, request):
raise NotImplementedError()
def delete_device(self, request):
raise NotImplementedError()
def attach_volume(self, request):
raise NotImplementedError()
def detach_volume(self, request):
raise NotImplementedError()
def owns_device(self, id):
raise NotImplementedError()
def set_qos(self, request):
raise NotImplementedError()
def get_qos_capabilities(self, request):
raise NotImplementedError()