Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add entry points for some OEM devices. #943

Merged
merged 3 commits into from
Nov 21, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Empty file added delfin/drivers/h3c/__init__.py
Empty file.
Empty file.
22 changes: 22 additions & 0 deletions delfin/drivers/h3c/unistor_cf/unistor_cf.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Copyright 2022 The SODA Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

from delfin.drivers.hpe.hpe_3par.hpe_3parstor import Hpe3parStorDriver


class H3cUniStorCfDriver(Hpe3parStorDriver):
def get_storage(self, context):
storage_info = super().get_storage(context)
storage_info['vendor'] = 'H3C'
return storage_info
Empty file.
Empty file.
22 changes: 22 additions & 0 deletions delfin/drivers/inspur/as5500/as5500.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Copyright 2022 The SODA Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

from delfin.drivers.ibm.storwize_svc.storwize_svc import StorwizeSVCDriver


class As5500Driver(StorwizeSVCDriver):
def get_storage(self, context):
storage = super().get_storage(context)
storage['vendor'] = 'Inspur'
return storage
7 changes: 6 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,17 +41,22 @@
'fujitsu eternus = delfin.drivers.fujitsu.eternus.eternus_stor:EternusDriver',
'dellemc unity = delfin.drivers.dell_emc.unity.unity:UnityStorDriver',
'dellemc vmax = delfin.drivers.dell_emc.vmax.vmax:VMAXStorageDriver',
'dellemc pmax = delfin.drivers.dell_emc.vmax.vmax:VMAXStorageDriver',
'dellemc vnx_block = delfin.drivers.dell_emc.vnx.vnx_block.vnx_block:VnxBlockStorDriver',
'dellemc vplex = delfin.drivers.dell_emc.vplex.vplex_stor:VplexStorageDriver',
'hitachi vsp = delfin.drivers.hitachi.vsp.vsp_stor:HitachiVspDriver',
'hpe 3par = delfin.drivers.hpe.hpe_3par.hpe_3parstor:Hpe3parStorDriver',
'hpe primera = delfin.drivers.hpe.hpe_3par.hpe_3parstor:Hpe3parStorDriver',
'hpe msa = delfin.drivers.hpe.hpe_msa.hpe_msastor:HpeMsaStorDriver',
'huawei oceanstor = delfin.drivers.huawei.oceanstor.oceanstor:OceanStorDriver',
'ibm storwize_svc = delfin.drivers.ibm.storwize_svc.storwize_svc:StorwizeSVCDriver',
'ibm ds8k = delfin.drivers.ibm.ds8k.ds8k:DS8KDriver',
'netapp cmode = delfin.drivers.netapp.dataontap.cluster_mode:NetAppCmodeDriver',
'hitachi hnas = delfin.drivers.hitachi.hnas.hds_nas:HitachiHNasDriver',
'pure flasharray = delfin.drivers.pure.flasharray.pure_flasharray:PureFlashArrayDriver'
'pure flasharray = delfin.drivers.pure.flasharray.pure_flasharray:PureFlashArrayDriver',
'h3c unistor_cf = delfin.drivers.h3c.unistor_cf.unistor_cf:H3cUniStorCfDriver',
# AS5500/AS5300/AS2600/AS2200 use the same driver
'inspur as5500 = delfin.drivers.inspur.as5500.as5500:As5500Driver'
]
},
)