Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions delfin/drivers/hpe/hpe_3par/component_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -622,10 +622,16 @@ def list_masking_views(self, storage_id):
volumes_group_map = self.ssh_handler.get_resources_ids(
self.ssh_handler.HPE3PAR_COMMAND_SHOWVVSET_D,
consts.HOST_OR_VV_PATTERN)
host_vv_set = set()
for view in views:
vv_name = view.get('vvname')
host_name = view.get('hostname')
if vv_name and host_name:
host_vv_key = '%s_%s' % (host_name, vv_name)
host_vv_key = host_vv_key.replace(' ', '')
if host_vv_key in host_vv_set:
continue
host_vv_set.add(host_vv_key)
port = view.get('port', '').replace('-', '')
lun_id = view.get('lun')
wwn = view.get('host_wwn/iscsi_name', '').replace('-', '')
Expand Down