These were deprecated in 2019, it's time to remove support for them now. Change-Id: I6931e80c836b568dec8989dad2a7be4e112c42b4 Signed-off-by: wanghailiangx <hailiangx.e.wang@intel.com> Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/12577 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Community-CI: Broadcom CI <spdk-ci.pdl@broadcom.com> Community-CI: Mellanox Build Bot Reviewed-by: Changpeng Liu <changpeng.liu@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com>
23 lines
553 B
Python
23 lines
553 B
Python
from .helpers import deprecated_alias
|
|
|
|
|
|
def nbd_start_disk(client, bdev_name, nbd_device):
|
|
params = {
|
|
'bdev_name': bdev_name
|
|
}
|
|
if nbd_device:
|
|
params['nbd_device'] = nbd_device
|
|
return client.call('nbd_start_disk', params)
|
|
|
|
|
|
def nbd_stop_disk(client, nbd_device):
|
|
params = {'nbd_device': nbd_device}
|
|
return client.call('nbd_stop_disk', params)
|
|
|
|
|
|
def nbd_get_disks(client, nbd_device=None):
|
|
params = {}
|
|
if nbd_device:
|
|
params['nbd_device'] = nbd_device
|
|
return client.call('nbd_get_disks', params)
|