numam-spdk/scripts/rpc
Blachut, Bartosz dc82055029 rpc: fix removing a listener with an empty trsvcid
If trsvcid is not set in the nvmf_subsystem_remove_listener call,
rpc client treats it as 'None' and sends "null" to the application,
which causes decode failure in SPDK.

Trsvcid is described as optional and should be treated this way.
For such a listener removal call with an empty trsvcid, "" should be
sent as trsvcid instead of "null" in the json request.

Signed-off-by: Blachut, Bartosz <bartosz.blachut@intel.com>
Change-Id: Ic26907c22a2600c9618354ce8ff63e93e00aec09
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/9659
Community-CI: Broadcom CI <spdk-ci.pdl@broadcom.com>
Community-CI: Mellanox Build Bot
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Jacek Kalwas <jacek.kalwas@intel.com>
Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
2021-11-02 15:24:21 +00:00
..
__init__.py net: Remove library 2021-07-13 08:57:58 +00:00
app.py spdk_top: add rpc for scheduler and governor 2021-01-22 18:33:13 +00:00
bdev.py bdev/nvme: Add "multipath" to the bdev_nvme_attach_controller to enable multipath 2021-10-27 11:53:31 +00:00
blobfs.py rpc/blobfs: add cache size setting rpc 2019-11-07 00:33:25 +00:00
client.py scripts/rpc: Make sure address argument is properly interpreted 2021-05-24 10:11:05 +00:00
cmd_parser.py rpc: add a command parser 2021-05-11 12:02:00 +00:00
env_dpdk.py env_dpdk/rpc: add rpc to get memory stats. 2019-12-13 11:05:57 +00:00
helpers.py rpc.py: add framework for detecting deprecated aliases 2019-05-09 04:37:08 +00:00
idxd.py idxd/rpc: Revise the rpc function to use kernel or user driver 2021-07-13 17:22:30 +00:00
ioat.py ioat: remove whitelist/blacklist functionality 2020-12-03 09:41:07 +00:00
iscsi.py iscsi: Set resource pool size to the predetermined values to run with little memory 2021-06-17 08:59:18 +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
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 rpc: fix removing a listener with an empty trsvcid 2021-11-02 15:24:21 +00:00
pmem.py rpc: Rename delete_pmem_pool to bdev_pmem_delete_pool 2019-09-05 07:04:17 +00:00
sock.py socket: Remove deprecated enable_zerocopy_send 2021-07-23 10:30:25 +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 virtio-blk: add hotplug rpc 2021-04-16 19:21:13 +00:00
vmd.py event/subsystem/vmd: RPC support 2019-07-26 18:27:40 +00:00