They were missed by the initial set of patches which introduced this header as a mandatory one across different types of files. Signed-off-by: Michal Berger <michal.berger@intel.com> Change-Id: I3f9b37d41298c843e1648e72fe8593768ccd37e0 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/15423 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Community-CI: Mellanox Build Bot Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com>
43 lines
986 B
Python
43 lines
986 B
Python
# SPDX-License-Identifier: BSD-3-Clause
|
|
# Copyright (C) 2022 Intel Corporation.
|
|
# All rights reserved.
|
|
|
|
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()
|