[Kimchi-devel] [PATCH 1/3] UI: add a api to get an storagevolume info

Aline Manera alinefm at linux.vnet.ibm.com
Fri Apr 11 01:05:08 UTC 2014


Reviewed-by: Aline Manera <alinefm at linux.vnet.ibm.com>

On 04/02/2014 11:19 AM, shaohef at linux.vnet.ibm.com wrote:
> From: ShaoHe Feng <shaohef at linux.vnet.ibm.com>
>
> Now we have support scsi/iscsi pool in template.
>
> We need to shoe some infomation of the storagevolume of scsi/iscsi pool

typo: shoe

I can fix it before applying

> in template edit page.
>
> Signed-off-by: ShaoHe Feng <shaohef at linux.vnet.ibm.com>
> ---
>   ui/js/src/kimchi.api.js | 12 ++++++++++++
>   1 file changed, 12 insertions(+)
>
> diff --git a/ui/js/src/kimchi.api.js b/ui/js/src/kimchi.api.js
> index 0c5c790..9f722cd 100644
> --- a/ui/js/src/kimchi.api.js
> +++ b/ui/js/src/kimchi.api.js
> @@ -381,6 +381,18 @@ var kimchi = {
>           });
>       },
>
> +    listStorageVolume : function(poolName, volumeName, suc, err) {
> +        $.ajax({
> +            url : kimchi.url + 'storagepools/' + encodeURIComponent(poolName) + '/storagevolumes/' + encodeURIComponent(volumeName),
> +            // url : kimchi.url + 'storagepools/' + encodeURIComponent(poolName) + '/storagevolumes/' + volumeName,
> +            type : 'GET',
> +            contentType : 'application/json',
> +            dataType : 'json',
> +            success : suc,
> +            error : err
> +        });
> +    },
> +
>       listIsos : function(suc, err) {
>           kimchi.requestJSON({
>               url : kimchi.url + 'storagepools/kimchi_isos/storagevolumes',




More information about the Kimchi-devel mailing list