PowerStore Driver - New format of connection properties for NVMeOF connector

The original format of connection properties supports only one portal
on the target side. This patch makes the transition to a new format
with multiple portals support.

Change-Id: I21c9b621c59cac254244bd4e98bafd0a64eef8fd
This commit is contained in:
olegnest 2022-08-05 14:27:37 +03:00
parent f9a7997113
commit ee8e87cf17

View File

@ -1175,13 +1175,12 @@ class NVMEoFAdapter(CommonAdapter):
"""
portals, nqn = self._get_nvme_targets()
target_portals = [(portal, 4420, "tcp") for portal in portals]
return {
"driver_volume_type": self.driver_volume_type,
"data": {
"target_portal": portals[0],
"nqn": nqn,
"target_port": 4420,
"transport_type": "tcp",
"portals": target_portals,
"target_nqn": nqn,
"volume_nguid": volume_identifier,
"discard": True,
},