With this optional setting, it is possible to allow the user to also
select 'unused' as a disk bus type.
Signed-off-by: Aaron Lauterer <a.lauterer@proxmox.com>
sata: 6,
scsi: 31,
virtio: 16,
+ unused: 256,
},
// types is either undefined (all busses), an array of busses, or a single bus
alias: 'widget.pveBusSelector',
noVirtIO: false,
+ withUnused: false,
initComponent: function() {
var me = this;
me.comboItems.push(['scsi', 'SCSI']);
+ if (me.withUnused) {
+ me.comboItems.push(['unused', 'Unused']);
+ }
+
me.callParent();
},
});
alias: 'widget.pveControllerSelector',
noVirtIO: false,
+ withUnused: false,
vmconfig: {}, // used to check for existing devices
itemId: 'controller',
value: PVE.qemu.OSDefaults.generic.busType,
noVirtIO: me.noVirtIO,
+ withUnused: me.withUnused,
allowBlank: false,
flex: 2,
listeners: {