[Kimchi-devel] [WIP 1/2] UI: add list Host Devices API

Sheldon shaohef at linux.vnet.ibm.com
Tue Mar 25 02:13:44 UTC 2014


On 03/25/2014 10:03 AM, Aline Manera wrote:
>
> 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
will update it.
Thanks.
>
> On 03/23/2014 08:31 PM, shaohef at linux.vnet.ibm.com wrote:
>> From: ShaoHe Feng <shaohef at linux.vnet.ibm.com>
>>
>> This API is used to get the Devices of Host.
>>
>> Signed-off-by: ShaoHe Feng <shaohef at 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({
>
>
>


-- 
Thanks and best regards!

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




More information about the Kimchi-devel mailing list