Sheldon, as we talked ealier Yu Xing has already sent the patches for
it: [Kimchi-devel] [V2 0/2] Fibre Channel SCSI Storage Pool UI
We need to update the "Edit" template to display the scsi/iscsi storage
pool as pool/volume
On 03/23/2014 08:31 PM, shaohef(a)linux.vnet.ibm.com wrote:
From: ShaoHe Feng <shaohef(a)linux.vnet.ibm.com>
This API is used to get the Devices of Host.
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 4310435..d6d7c4b 100644
--- a/ui/js/src/kimchi.api.js
+++ b/ui/js/src/kimchi.api.js
@@ -706,6 +706,18 @@ var kimchi = {
});
},
+ listHostDevices: function(cap, suc, err) {
+ parameters = cap && "?_cap=" + cap
+ kimchi.requestJSON({
+ url : kimchi.url + 'host/devices' + parameters,
+ type : 'GET',
+ contentType : 'application/json',
+ dataType : 'json',
+ success : suc,
+ error : err
+ });
+ },
+
getStorageServers: function(type, suc, err) {
var url = kimchi.url + 'storageservers?_target_type=' + type;
kimchi.requestJSON({