예제 #1
0
파일: test_port.py 프로젝트: crook/storops
 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'))
예제 #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'))
예제 #3
0
 def _process_cli_output(value):
     port = VNXHbaPort.from_storage_group_hba(value)
     hba = value.uid
     self._hba_port_list.append((hba, port))
예제 #4
0
파일: sg.py 프로젝트: crook/storops
 def _process_cli_output(value):
     port = VNXHbaPort.from_storage_group_hba(value)
     hba = value.uid
     self._hba_port_list.append((hba, port))