[pve-devel] [PATCH manager v2 3/4] USe PVE.qemu.OSDefaults statics to get defaults for NIC and Storage Controller

Emmanuel Kasper e.kasper at proxmox.com
Thu Jul 21 11:10:45 CEST 2016


---
 www/manager6/form/ControllerSelector.js | 2 +-
 www/manager6/qemu/NetworkEdit.js        | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/www/manager6/form/ControllerSelector.js b/www/manager6/form/ControllerSelector.js
index 0e1f322..1b2946a 100644
--- a/www/manager6/form/ControllerSelector.js
+++ b/www/manager6/form/ControllerSelector.js
@@ -67,7 +67,7 @@ Ext.define('PVE.form.ControllerSelector', {
 		{
 		    xtype: 'pveBusSelector',
 		    name: 'controller',
-		    value: 'ide',
+		    value: PVE.qemu.OSDefaults.generic.busType,
 		    noVirtIO: me.noVirtIO,
 		    noScsi: me.noScsi,
 		    allowBlank: false,
diff --git a/www/manager6/qemu/NetworkEdit.js b/www/manager6/qemu/NetworkEdit.js
index 8a4945d..1d2a16e 100644
--- a/www/manager6/qemu/NetworkEdit.js
+++ b/www/manager6/qemu/NetworkEdit.js
@@ -127,7 +127,7 @@ Ext.define('PVE.qemu.NetworkInputPanel', {
 		xtype: 'pveNetworkCardSelector',
 		name: 'model',
 		fieldLabel: gettext('Model'),
-		value: 'e1000',
+		value: PVE.qemu.OSDefaults.generic.networkCard,
 		allowBlank: false
 	    },
 	    {
-- 
2.1.4





More information about the pve-devel mailing list