コード例 #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
ファイル: sg.py プロジェクト: thedreadpirateeric/storops
 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))