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'))
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'))
def _process_cli_output(value): port = VNXHbaPort.from_storage_group_hba(value) hba = value.uid self._hba_port_list.append((hba, port))
def _process_cli_output(value): port = VNXHbaPort.from_storage_group_hba(value) hba = value.uid self._hba_port_list.append((hba, port))