mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-02 20:02:29 +01:00
Adding support to indicate hypervisor when registering ISOs
This commit is contained in:
parent
478f41ec48
commit
031c6fc280
@ -590,6 +590,14 @@ long milliseconds = new Date().getTime();
|
||||
<option value="false">No</option>
|
||||
</select>
|
||||
</li>
|
||||
<li>
|
||||
<label for="add_iso_hypervisor">Hypervisor:</label>
|
||||
<select class="select" name="add_iso_hypervisor" id="add_iso_hypervisor">
|
||||
<option value='VmWare'>VMware ESX</option>
|
||||
<option value='XenServer'>Citrix XenServer</option>
|
||||
<option value='KVM'>KVM</option>
|
||||
</select>
|
||||
</li>
|
||||
<li>
|
||||
<label for="add_iso_os_type">OS Type:</label>
|
||||
<select class="select" name="add_iso_os_type" id="add_iso_os_type">
|
||||
|
||||
@ -753,12 +753,13 @@ function showTemplatesTab() {
|
||||
//var isPublic = thisDialog.find("#add_iso_public").val();
|
||||
var isPublic = "false"; //default to private for now
|
||||
var osType = thisDialog.find("#add_iso_os_type").val();
|
||||
var bootable = thisDialog.find("#add_iso_bootable").val();
|
||||
var bootable = thisDialog.find("#add_iso_bootable").val();
|
||||
var hypervisor = thisDialog.find("#add_iso_hypervisor").val();
|
||||
|
||||
thisDialog.dialog("close");
|
||||
|
||||
$.ajax({
|
||||
data: createURL("command=registerIso&name="+encodeURIComponent(name)+"&displayText="+encodeURIComponent(desc)+"&url="+encodeURIComponent(url)+"&zoneId="+zoneId+"&isPublic="+isPublic+"&osTypeId="+osType+"&bootable="+bootable+"&response=json"),
|
||||
data: createURL("command=registerIso&name="+encodeURIComponent(name)+"&displayText="+encodeURIComponent(desc)+"&url="+encodeURIComponent(url)+"&zoneId="+zoneId+"&isPublic="+isPublic+"&osTypeId="+osType+"&bootable="+bootable+"&hypervisor="+hypervisor+"&response=json"),
|
||||
dataType: "json",
|
||||
success: function(json) {
|
||||
var result = json.registerisoresponse;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user