@@ -86,9 +86,7 @@ def create_snapshot(snapshot_name, vdisk_name, vpool_name, api, consistent=True,
8686 def create_vdisk (vdisk_name , vpool_name , size , storagerouter_ip , api , timeout = CREATE_VDISK_TIMEOUT ):
8787 """
8888 Create a new vDisk on a certain vPool/storagerouter
89-
90- :param vdisk_name: location of a vdisk on a vpool
91- (e.g. /mnt/vpool/test.raw = test.raw, /mnt/vpool/volumes/test.raw = volumes/test.raw )
89+ :param vdisk_name: location of a vdisk on a vpool (e.g. /mnt/vpool/test.raw = test.raw, /mnt/vpool/volumes/test.raw = volumes/test.raw )
9290 :type vdisk_name: str
9391 :param vpool_name: name of a existing vpool
9492 :type vpool_name: str
@@ -171,14 +169,11 @@ def create_clone(vdisk_name, vpool_name, new_vdisk_name, storagerouter_ip, api,
171169 timeout = CREATE_CLONE_TIMEOUT ):
172170 """
173171 Create a new vDisk on a certain vPool/storagerouter
174-
175- :param vdisk_name: location of a vdisk on a vpool
176- (e.g. /mnt/vpool/test.raw = test.raw, /mnt/vpool/volumes/test.raw = volumes/test.raw )
172+ :param vdisk_name: location of a vdisk on a vpool (e.g. /mnt/vpool/test.raw = test.raw, /mnt/vpool/volumes/test.raw = volumes/test.raw )
177173 :type vdisk_name: str
178174 :param vpool_name: name of a existing vpool
179175 :type vpool_name: str
180- :param new_vdisk_name: location of the NEW vdisk on the vpool
181- (e.g. /mnt/vpool/test.raw = test.raw, /mnt/vpool/volumes/test.raw = volumes/test.raw )
176+ :param new_vdisk_name: location of the NEW vdisk on the vpool (e.g. /mnt/vpool/test.raw = test.raw, /mnt/vpool/volumes/test.raw = volumes/test.raw )
182177 :type new_vdisk_name: str
183178 :param storagerouter_ip: ip address of a existing storagerouter where the clone will be deployed
184179 :type storagerouter_ip: str
@@ -249,7 +244,6 @@ def set_vdisk_as_template(vdisk_name, vpool_name, api, timeout=SET_VDISK_AS_TEMP
249244 :type api: ci.helpers.api.OVSClient
250245 :param timeout: time to wait for the task to complete
251246 """
252-
253247 # fetch the requirements
254248 vdisk = VDiskHelper .get_vdisk_by_name (vdisk_name , vpool_name )
255249
@@ -273,22 +267,20 @@ def create_from_template(vdisk_name, vpool_name, new_vdisk_name, storagerouter_i
273267 """
274268 Create a new vDisk on a certain vPool/storagerouter
275269 Set a existing vDisk as vTemplate
276-
277- :param vdisk_name: location of a vdisk on a vpool
278- (e.g. /mnt/vpool/test.raw = test.raw, /mnt/vpool/volumes/test.raw = volumes/test.raw )
270+ :param vdisk_name: location of a vdisk on a vpool(e.g. /mnt/vpool/test.raw = test.raw, /mnt/vpool/volumes/test.raw = volumes/test.raw )
279271 :type vdisk_name: str
280272 :param vpool_name: name of a existing vpool
281273 :type vpool_name: str
282- :param new_vdisk_name: location of the NEW vdisk on the vpool
283- (e.g. /mnt/vpool/test.raw = test.raw, /mnt/vpool/volumes/test.raw = volumes/test.raw )
274+ :param new_vdisk_name: location of the NEW vdisk on the vpool (e.g. /mnt/vpool/test.raw = test.raw, /mnt/vpool/volumes/test.raw = volumes/test.raw )
284275 :type new_vdisk_name: str
285276 :param storagerouter_ip: ip address of a existing storagerouter where the clone will be deployed
286277 :type storagerouter_ip: str
287278 :param api: specify a valid api connection to the setup
288279 :type api: ci.helpers.api.OVSClient
289280 :param timeout: time to wait for the task to complete
281+ :return: dict with info about the new vdisk {'vdisk_guid': new_vdisk.guid, 'name': new_vdisk.name, 'backingdevice': devicename}
282+ :rtype: dict
290283 """
291-
292284 # fetch the requirements
293285 vdisk = VDiskHelper .get_vdisk_by_name (vdisk_name , vpool_name )
294286 storagerouter_guid = StoragerouterHelper .get_storagerouter_by_ip (storagerouter_ip ).guid
0 commit comments