[pve-devel] [pve-manager 2/4] Add new ExtJS class to hold OS-dependant wizard defaults
Emmanuel Kasper
e.kasper at proxmox.com
Wed Jul 6 10:32:08 CEST 2016
---
www/manager6/Makefile | 1 +
www/manager6/qemu/OSDefaults.js | 21 +++++++++++++++++++++
2 files changed, 22 insertions(+)
create mode 100644 www/manager6/qemu/OSDefaults.js
diff --git a/www/manager6/Makefile b/www/manager6/Makefile
index 92969b3..e5b3667 100644
--- a/www/manager6/Makefile
+++ b/www/manager6/Makefile
@@ -123,6 +123,7 @@ JSSRC= \
qemu/Monitor.js \
qemu/Summary.js \
qemu/OSTypeEdit.js \
+ qemu/OSDefaults.js \
qemu/ProcessorEdit.js \
qemu/BootOrderEdit.js \
qemu/MemoryEdit.js \
diff --git a/www/manager6/qemu/OSDefaults.js b/www/manager6/qemu/OSDefaults.js
new file mode 100644
index 0000000..c213137
--- /dev/null
+++ b/www/manager6/qemu/OSDefaults.js
@@ -0,0 +1,21 @@
+/*
+ * This class holds recommended settings for the PVE Qemu wizards
+ * Mandatory settings are infered from the ostype in the PVE::QemuServer
+ * config_to_command sub
+ * We store this here until we get the data from the API server
+ */
+
+Ext.define('PVE.qemu.OSDefaults', {
+ statics: {
+ busType: 'ide',
+ networkCard: 'e1000'
+ }
+});
+
+Ext.define('PVE.qemu.l26Defaults', {
+ extend: 'PVE.qemu.OSDefaults',
+ statics: {
+ busType: 'virtio',
+ networkCard: 'virtio'
+ }
+});
\ No newline at end of file
--
2.1.4
More information about the pve-devel
mailing list