Spdk/scripts/rpc
Jim Harris 8bc9798dc7 rpc.py: add new kv to existing params dict
When we get an error when calling an RPC, client.py
makes extensive use of the ** operator to add
the method and req_id to the params dict variable.

This doens't work with Python 2.  We don't really
support Python 2, but there are at least some folks
out there who make their own mods to get rpc.py
to work with it.  We can very easily implement this in
a way that is Python 2 friendly, so let's do that
to make it a tiny bit easier for those folks.

Incidentally, I do think the changes here also make
this part of the code a bit easier to read and
understand.

Signed-off-by: Jim Harris <james.r.harris@intel.com>
Change-Id: I1846c80e21032ffba67128bee946b041a61d0621

Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/476632
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Reviewed-by: Alexey Marchuk <alexeymar@mellanox.com>
Reviewed-by: Karol Latecki <karol.latecki@intel.com>
Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
2019-12-05 12:23:30 +00:00
..
__init__.py blobfs: add blobfs_detect RPC 2019-10-09 05:02:00 +00:00
app.py RPC: rename context_switch_monitor to framework_monitor_context_switch 2019-09-30 21:13:41 +00:00
bdev.py bdev/zone: Rpc functions for zoned block bdev 2019-11-15 20:27:14 +00:00
blobfs.py rpc/blobfs: add cache size setting rpc 2019-11-07 00:33:25 +00:00
client.py rpc.py: add new kv to existing params dict 2019-12-05 12:23:30 +00:00
helpers.py rpc.py: add framework for detecting deprecated aliases 2019-05-09 04:37:08 +00:00
ioat.py RPC: rename scan_ioat_copy_engine to ioat_scan_copy_engine 2019-09-19 19:24:47 +00:00
iscsi.py rpc: Rename get_scsi_devices to scsi_get_devices 2019-10-03 23:01:27 +00:00
log.py RPC: rename get_log_flags to log_get_flags 2019-09-24 16:42:41 +00:00
lvol.py RPC: rename rpc construct_lvol_store to bdev_lvol_create_lvstore 2019-08-30 16:40:44 +00:00
nbd.py rpc: Rename get_nbd_disks to nbd_get_disks 2019-09-19 20:56:35 +00:00
net.py rpc: Rename get_interfaces to net_get_interfaces 2019-09-21 23:30:37 +00:00
notify.py RPC: rename get_notifications to notify_get_notifications 2019-09-24 16:42:41 +00:00
nvme.py bdev/opal: Add rpc for init, revert and get info 2019-10-24 17:09:57 +00:00
nvmf.py lib/nvmf: add the nvmf_get_targets rpc. 2019-09-26 15:21:44 +00:00
pmem.py rpc: Rename delete_pmem_pool to bdev_pmem_delete_pool 2019-09-05 07:04:17 +00:00
subsystem.py RPC: rename get_subsystem_config to framework_get_config 2019-10-01 13:57:36 +00:00
trace.py rpc: Rename get_tpoint_group_mask trace_get_tpoint_group_mask 2019-10-01 13:59:37 +00:00
vhost.py rpc: Rename construct_vhost_blk_controller to vhost_create_blk_controller 2019-10-10 16:19:56 +00:00
vmd.py event/subsystem/vmd: RPC support 2019-07-26 18:27:40 +00:00