[pve-devel] [PATCH manager] ceph: gui: add device class select on OSD create

Alwin Antreich a.antreich at proxmox.com
Thu Oct 15 10:12:45 CEST 2020


Signed-off-by: Alwin Antreich <a.antreich at proxmox.com>
---
 www/manager6/ceph/OSD.js | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)

diff --git a/www/manager6/ceph/OSD.js b/www/manager6/ceph/OSD.js
index 88109315..e9224743 100644
--- a/www/manager6/ceph/OSD.js
+++ b/www/manager6/ceph/OSD.js
@@ -77,6 +77,23 @@ Ext.define('PVE.CephCreateOsd', {
 			    name: 'encrypted',
 			    fieldLabel: gettext('Encrypt OSD')
 			},
+			{
+			    xtype: 'proxmoxKVComboBox',
+			    comboItems: [
+				['hdd', 'HDD'],
+				['ssd', 'SSD'],
+				['nvme', 'NVME'],
+			    ],
+			    name: 'crush-device-class',
+			    nodename: me.nodename,
+			    fieldLabel: gettext('Device Class'),
+			    value: '',
+			    autoSelect: false,
+			    allowBlank: true,
+			    editable: true,
+			    emptyText: 'auto detect',
+			    deleteEmpty: me.isCreate ? false : true,
+			},
 		    ],
 		    advancedColumn2: [
 			{
-- 
2.27.0






More information about the pve-devel mailing list