scripts/rpc: change virtio print_dict to print_array
Changing for easier parsing in scripts and to be consistent with construct_nvme_bdev and construct_malloc_bdev which also can return multiple bdevs at once. Change-Id: I9b0abf9925f4014a3b8c0147daeefe1bb6b95241 Signed-off-by: Karol Latecki <karol.latecki@intel.com> Reviewed-on: https://review.gerrithub.io/417662 Tested-by: SPDK Automated Test System <sys_sgsw@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Reviewed-by: Daniel Verkamp <daniel.verkamp@intel.com>
This commit is contained in:
parent
ed8df49d2f
commit
8126104939
@ -1396,13 +1396,13 @@ if __name__ == "__main__":
|
||||
|
||||
@call_cmd
|
||||
def construct_virtio_dev(args):
|
||||
print_dict(rpc.vhost.construct_virtio_dev(args.client,
|
||||
name=args.name,
|
||||
trtype=args.trtype,
|
||||
traddr=args.traddr,
|
||||
dev_type=args.dev_type,
|
||||
vq_count=args.vq_count,
|
||||
vq_size=args.vq_size))
|
||||
print_array(rpc.vhost.construct_virtio_dev(args.client,
|
||||
name=args.name,
|
||||
trtype=args.trtype,
|
||||
traddr=args.traddr,
|
||||
dev_type=args.dev_type,
|
||||
vq_count=args.vq_count,
|
||||
vq_size=args.vq_size))
|
||||
|
||||
p = subparsers.add_parser('construct_virtio_dev', help="""Construct new virtio device using provided
|
||||
transport type and device type. In case of SCSI device type this implies scan and add bdevs offered by
|
||||
@ -1420,11 +1420,11 @@ if __name__ == "__main__":
|
||||
|
||||
@call_cmd
|
||||
def construct_virtio_user_scsi_bdev(args):
|
||||
print_dict(rpc.vhost.construct_virtio_user_scsi_bdev(args.client,
|
||||
path=args.path,
|
||||
name=args.name,
|
||||
vq_count=args.vq_count,
|
||||
vq_size=args.vq_size))
|
||||
print_array(rpc.vhost.construct_virtio_user_scsi_bdev(args.client,
|
||||
path=args.path,
|
||||
name=args.name,
|
||||
vq_count=args.vq_count,
|
||||
vq_size=args.vq_size))
|
||||
|
||||
p = subparsers.add_parser('construct_virtio_user_scsi_bdev', help="""Connect to virtio user scsi device.
|
||||
This imply scan and add bdevs offered by remote side.
|
||||
@ -1438,9 +1438,9 @@ if __name__ == "__main__":
|
||||
|
||||
@call_cmd
|
||||
def construct_virtio_pci_scsi_bdev(args):
|
||||
print_dict(rpc.vhost.construct_virtio_pci_scsi_bdev(args.client,
|
||||
pci_address=args.pci_address,
|
||||
name=args.name))
|
||||
print_array(rpc.vhost.construct_virtio_pci_scsi_bdev(args.client,
|
||||
pci_address=args.pci_address,
|
||||
name=args.name))
|
||||
|
||||
p = subparsers.add_parser('construct_virtio_pci_scsi_bdev', help="""Create a Virtio
|
||||
SCSI device from a virtio-pci device.""")
|
||||
|
Loading…
Reference in New Issue
Block a user