<filename>scripts/rpc/nbd.py
def start_nbd_disk(args):
    params = {
        'bdev_name': args.bdev_name,
        'nbd_device': args.nbd_device
    }
    return args.client.call('start_nbd_disk', params)


def stop_nbd_disk(args):
    params = {'nbd_device': args.nbd_device}
    return args.client.call('stop_nbd_disk', params)


def get_nbd_disks(args):
    params = {}
    if args.nbd_device:
        params['nbd_device'] = args.nbd_device
    return args.client.call('get_nbd_disks', params)

<filename>scripts/rpc/nbd.py
def start_nbd_disk(args):
    params = {
        'bdev_name': args.bdev_name,
        'nbd_device': args.nbd_device
    }
    return args.client.call('start_nbd_disk', params)


def stop_nbd_disk(args):
    params = {'nbd_device': args.nbd_device}
    return args.client.call('stop_nbd_disk', params)


def get_nbd_disks(args):
    params = {}
    if args.nbd_device:
        params['nbd_device'] = args.nbd_device
    return args.client.call('get_nbd_disks', params)
