mirror of
https://github.com/OpenNebula/one.git
synced 2025-01-27 14:03:40 +03:00
Feature #898: Add driver attribute to image wizard
(cherry picked from commit b3ea3bee5133773a4aa7cd78570674098f166ec8)
This commit is contained in:
parent
74dd905583
commit
ddff4af949
@ -95,6 +95,11 @@ var create_image_tmpl =
|
||||
</select>\
|
||||
<div class="tip">Type of disk device to emulate.</div>\
|
||||
</div>\
|
||||
<div class="img_param">\
|
||||
<label for="img_driver">Driver:</label>\
|
||||
<input type="text" name="img_driver" id="img_driver" />\
|
||||
<div class="tip">Specific image mapping driver. KVM: raw, qcow2 and Xen:tap:aio:, file:</div>\
|
||||
</div>\
|
||||
</fieldset>\
|
||||
<fieldset>\
|
||||
<div class="" id="src_path_select">\
|
||||
@ -783,6 +788,10 @@ function setupCreateImageDialog(){
|
||||
var bus = $('#img_bus',this).val();
|
||||
img_json["BUS"] = bus;
|
||||
|
||||
var driver = $('#img_driver',this).val();
|
||||
if (driver.length)
|
||||
img_json["DRIVER"] = driver;
|
||||
|
||||
switch ($('#src_path_select input:checked',this).val()){
|
||||
case "path":
|
||||
path = $('#img_path',this).val();
|
||||
|
Loading…
x
Reference in New Issue
Block a user