[Kimchi-devel] [PATCH V2 1/2] Issue #363: Add new rest api function - getStoragePoolVolume
Sheldon
shaohef at linux.vnet.ibm.com
Wed Apr 9 04:19:37 UTC 2014
oh, I have already send a similar patch. on 04/02.
[PATCH 1/3] UI: add a api to get an storagevolume info
[PATCH 2/3] UI: change the disks field of template when the pool changes.
[PATCH 3/3] UI: set the correct disks field and storage pool filed when
initialize the template edit page.
On 04/09/2014 10:53 AM, Rodrigo Trujillo wrote:
> This patch adds new api AJAX method to retrieve specific storage pool
> volume information. This method is used in template edit window.
>
> Signed-off-by: Rodrigo Trujillo <rodrigo.trujillo at linux.vnet.ibm.com>
> ---
> ui/js/src/kimchi.api.js | 13 +++++++++++++
> 1 file changed, 13 insertions(+)
>
> diff --git a/ui/js/src/kimchi.api.js b/ui/js/src/kimchi.api.js
> index 376bc86..963d2d7 100644
> --- a/ui/js/src/kimchi.api.js
> +++ b/ui/js/src/kimchi.api.js
> @@ -744,6 +744,19 @@ var kimchi = {
> });
> },
>
> + getStoragePoolVolume: function(pool, volume, suc, err) {
> + var url = kimchi.url + 'storagepools/' + pool + '/storagevolumes/' + volume;
> + kimchi.requestJSON({
> + url : url,
> + type : 'GET',
> + contentType : 'application/json',
> + timeout: 2000,
> + dataType : 'json',
> + success : suc,
> + error : err
> + });
> + },
> +
> addVMStorage : function(settings, suc, err) {
> var vm = encodeURIComponent(settings['vm']);
> delete settings['vm'];
--
Thanks and best regards!
Sheldon Feng(冯少合)<shaohef at linux.vnet.ibm.com>
IBM Linux Technology Center
More information about the Kimchi-devel
mailing list