From e5f3f332723ce49c3e0bbd301fbd067cb295af23 Mon Sep 17 00:00:00 2001 From: yuanyu Date: Wed, 19 Jan 2022 11:06:54 +0800 Subject: [PATCH] 3par add host mapping view --- delfin/drivers/hpe/hpe_3par/component_handler.py | 1 + delfin/tests/unit/drivers/hpe/hpe_3par/test_hpe_3parstor.py | 1 + 2 files changed, 2 insertions(+) diff --git a/delfin/drivers/hpe/hpe_3par/component_handler.py b/delfin/drivers/hpe/hpe_3par/component_handler.py index 643e4e812..7f848019a 100644 --- a/delfin/drivers/hpe/hpe_3par/component_handler.py +++ b/delfin/drivers/hpe/hpe_3par/component_handler.py @@ -438,6 +438,7 @@ def list_storage_host_initiators(self, storage_id): "storage_id": storage_id, "native_storage_host_initiator_id": name, "wwn": wwn, + 'alias': name, "type": type, "status": constants.InitiatorStatus.ONLINE, "native_storage_host_id": initiator.get('id', diff --git a/delfin/tests/unit/drivers/hpe/hpe_3par/test_hpe_3parstor.py b/delfin/tests/unit/drivers/hpe/hpe_3par/test_hpe_3parstor.py index f24cd9d5f..c0f0517e1 100644 --- a/delfin/tests/unit/drivers/hpe/hpe_3par/test_hpe_3parstor.py +++ b/delfin/tests/unit/drivers/hpe/hpe_3par/test_hpe_3parstor.py @@ -1321,6 +1321,7 @@ def __init__(self): 'storage_id': '12345', 'native_storage_host_initiator_id': '2408244427906812', 'wwn': '2408244427906812', + 'alias': '2408244427906812', 'type': 'fc', 'status': 'online', 'native_storage_host_id': '175'