Beispiel #1
0
 def test_from_storage_group_hba(self):
     hba = VNXStorageGroupHBA.parse(STORAGE_GROUP_HBA)
     port = VNXHbaPort.from_storage_group_hba(hba)
     assert_that(port.sp, equal_to(VNXSPEnum.SP_A))
     assert_that(port.port_id, equal_to(3))
     assert_that(port.vport_id, equal_to(1))
     assert_that(port.type, equal_to(VNXPortType.ISCSI))
     assert_that(port.host_initiator_list,
                 has_item('iqn.1991-05.com.microsoft:abc.def.dev'))
Beispiel #2
0
 def test_from_storage_group_hba(self):
     hba = VNXStorageGroupHBA.parse(STORAGE_GROUP_HBA)
     port = VNXHbaPort.from_storage_group_hba(hba)
     assert_that(port.sp, equal_to(VNXSPEnum.SP_A))
     assert_that(port.port_id, equal_to(3))
     assert_that(port.vport_id, equal_to(1))
     assert_that(port.type, equal_to(VNXPortType.ISCSI))
     assert_that(port.host_initiator_list,
                 has_item('iqn.1991-05.com.microsoft:abc.def.dev'))
Beispiel #3
0
 def _process_cli_output(value):
     port = VNXHbaPort.from_storage_group_hba(value)
     hba = value.uid
     self._hba_port_list.append((hba, port))
Beispiel #4
0
 def _process_cli_output(value):
     port = VNXHbaPort.from_storage_group_hba(value)
     hba = value.uid
     self._hba_port_list.append((hba, port))