Skip to content

Commit

Permalink
Merge pull request #446 from yuanyu-ghca/hpe_3par_hostmap
Browse files Browse the repository at this point in the history
Handling view return issues
  • Loading branch information
yuanyu-ghca authored Jan 21, 2022
2 parents 12f6c85 + 48dd99a commit 868cd2b
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
3 changes: 0 additions & 3 deletions delfin/drivers/hpe/hpe_3par/component_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -629,16 +629,13 @@ def list_masking_views(self, storage_id):
port = view.get('port', '').replace('-', '')
id = view.get('lun')
wwn = view.get('host_wwn/iscsi_name', '').replace('-', '')
native_port_group_id = None
if port:
id = '%s_%s' % (view.get('lun'), port)
native_port_group_id = 'port_group_%s' % port
if wwn:
id = '%s_%s' % (id, wwn)
view_model = {
'native_masking_view_id': id,
"name": view.get('lun'),
'native_port_group_id': native_port_group_id,
"storage_id": storage_id
}
if 'set:' in vv_name:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1329,7 +1329,6 @@ def __init__(self):
{
'native_masking_view_id': '2_0:2:1',
'name': '2',
'native_port_group_id': 'port_group_0:2:1',
'storage_id': '12345',
'native_volume_id': '666',
'native_storage_host_id': '160'
Expand Down

0 comments on commit 868cd2b

Please sign in to comment.