Spdk/scripts/rpc
Shuhei Matsumoto f35f395b82 iscsi/rpc: Adjust format of bdev_name_id_pair between dump and construct
JSON format of bdev_name_id_pair is different between
construct_target_node() and get_target_nodes().

construct_target_nodes() uses the following format:

    "lun_ids": [
      1
    ],
    "bdev_names": [
      "Malloc0"
    ]

get_target_nodes() uses the following format:

    "luns": [
      {
        "lun_id": 0,
        "bdev_name": "lvs_1/lbd_1"
      },
    ]

The second format is better than the first format. Hence unify to
the second format.

Change-Id: If097e41ada0f2fe3754691cee0a0774db97c4ebb
Signed-off-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Reviewed-on: https://review.gerrithub.io/399993
Tested-by: SPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: Daniel Verkamp <daniel.verkamp@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
2018-02-21 15:07:48 -05:00
..
__init__.py rpc.py: import print_dict for get_rpc_methods 2018-01-26 12:13:15 -05:00
app.py pep8: re-enable E302 (2 blank lines between functions) 2018-02-15 11:10:41 -05:00
bdev.py pep8: re-enable E302 (2 blank lines between functions) 2018-02-15 11:10:41 -05:00
client.py Added support for IPv6 address to send JSON request using rpc.py 2018-02-21 12:54:26 -05:00
iscsi.py iscsi/rpc: Adjust format of bdev_name_id_pair between dump and construct 2018-02-21 15:07:48 -05:00
log.py rpc.py: make 'verbose' a client parameter 2018-02-06 08:54:38 -05:00
lvol.py bdev: Added functions allowing logical volume rename. 2018-02-16 16:21:20 -05:00
nbd.py rpc: Break rpc client into individual python files 2018-01-25 10:24:46 -05:00
net.py rpc.py: make 'verbose' a client parameter 2018-02-06 08:54:38 -05:00
nvmf.py nvmf: allow configuration of ns NGUID and EUI64 2018-02-20 12:01:47 -05:00
pmem.py rpc: Break rpc client into individual python files 2018-01-25 10:24:46 -05:00
vhost.py pep8: re-enable E302 (2 blank lines between functions) 2018-02-15 11:10:41 -05:00