mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-15 13:59:18 +00:00
acrn-config: update UI to support virtio devices
Add multi device editing UI for Virtio-net and virtio-blk devices. Tracked-On: #4185 Signed-off-by: Shuang Zheng <shuang.zheng@intel.com>
This commit is contained in:
@@ -510,7 +510,14 @@ function save_launch(generator=null) {
|
||||
$("input").each(function(){
|
||||
var id = $(this).attr('id');
|
||||
var value = $(this).val();
|
||||
if(id!='new_launch_name' && id!='board_info_file'
|
||||
|
||||
if(id.indexOf('virtio_devices,network')>=0 || id.indexOf('virtio_devices,block')>=0) {
|
||||
if(id in launch_config) {
|
||||
launch_config[id].push(value);
|
||||
} else {
|
||||
launch_config[id] = [value];
|
||||
}
|
||||
} else if(id!='new_launch_name' && id!='board_info_file'
|
||||
&& id!='board_info_upload' && id!='scenario_name'
|
||||
&& id!="launch_file") {
|
||||
launch_config[id] = value;
|
||||
|
Reference in New Issue
Block a user