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
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',
--
1.8.5.3