[Kimchi-devel] [PATCH V7] Add nfs server and target UI in create storage pool

Sheldon shaohef at linux.vnet.ibm.com
Fri Jan 24 00:41:52 UTC 2014


comment below:


On 01/16/2014 10:03 AM, zhoumeina wrote:
> +    },
> +
> +    getStorageServers: function(type, suc, err) {
> +        var url = kimchi.url + 'storageservers?target_type=' + type;
according to
[PATCHv9 03/10] Storage server: Update API.md

target_type -> _target_type ?

> +        kimchi.requestJSON({
> +            url : url,
> +            type : 'GET',
> +            contentType : 'application/json',
> +            dataType : 'json',
> +            success : suc,
> +            error : err
> +        });
> +    },
> +
> +    getStorageTargets: function(server,type, suc, err) {
> +        var url = kimchi.url + 'storageservers/' + server + '/storagetargets?target_type=' + type;
^
> +        kimchi.requestJSON({
> +            url : url,
> +            type : 'GET',
> +            contentType : 'application/json',
> +            timeout: 2000,
> +            dataType : 'json',
> +            success : suc,
> +            error : err
> +        });
>       }


-- 
Thanks and best regards!

Sheldon Feng(冯少合)<shaohef at linux.vnet.ibm.com>
IBM Linux Technology Center




More information about the Kimchi-devel mailing list