Reviewed-by: Aline Manera <alinefm(a)linux.vnet.ibm.com>
On 04/02/2014 11:19 AM, shaohef(a)linux.vnet.ibm.com wrote:
From: ShaoHe Feng <shaohef(a)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(a)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',