Bases: object
Common class for Huawei OceanStor 18000 storage system.
Activate or deactivate QoS.
enablestatus: true (activate) enbalestatus: false (deactivate)
Add a FC port to the host.
Associate host to hostgroup.
If hostgroup doesn’t exist, create one.
Add lun to QoS.
Associate lun to lungroup.
Send requests to server.
If fail, try another RestURL.
Change lun priority to high.
Change lun smarttier policy.
Check if host exists on the array, or create it.
Create a luncopy.
Remove hostgroup associate from the mapping view.
Delete a LUNcopy.
Remove lungroup associate from the mapping view.
Remove mapping view from the storage.
Remove portgroup associate from the mapping view.
Delete a QoS policy.
Send requests to 18000 server.
Send HTTPS call, get response in JSON. Convert response into Python Object and return it.
Add hostgroup and lungroup to mapping view.
“Find available QoS on the array.
Find CHAP info from xml.
Get the given host ID.
Get the given hostgroup id.
Get lungroup from the given map
Find mapping view.
Find target portgroup id by target port group name.
Get target iSCSI params, including iqn, IP.
Get the lun list in QoS.
Get LUNcopy information.
Get lungroup ids by lun id.
Check if there are still other luns associated to the lungroup.
Get online free WWNs.
If no new ports connected, return an empty list.
Get QoS information.
Get QoS id by lun id.
Check whether the initiator is associated to the host.
Check whether the initiator is associated to the host.
Check whether the port group is associated to the mapping view.
Login 18000 array.
Remove CHAP when terminate connection.
Remove lun from lungroup.
Remove lun from QoS.
Start a LUNcopy.