]> git.proxmox.com Git - pve-manager.git/commitdiff
remove nexenta plugin
authorAlexandre Derumier <aderumier@odiso.com>
Fri, 4 Oct 2013 12:45:21 +0000 (14:45 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Tue, 8 Oct 2013 04:14:45 +0000 (06:14 +0200)
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
www/manager/Makefile
www/manager/Utils.js
www/manager/dc/StorageView.js
www/manager/qemu/Clone.js
www/manager/qemu/HDEdit.js
www/manager/qemu/HDMove.js
www/manager/storage/NexentaEdit.js [deleted file]

index 6b85683e1d0b4805a01b2fd306f021a5ed0b5443..46c8a3284d16e282402139a76f42be56d9839bb7 100644 (file)
@@ -134,7 +134,6 @@ JSSRC=                                                      \
        storage/LVMEdit.js                              \
        storage/RBDEdit.js                              \
        storage/SheepdogEdit.js                         \
-       storage/NexentaEdit.js                          \
        storage/ZFSEdit.js                              \
        dc/Summary.js                                   \
        dc/OptionView.js                                \
index e730c6b9003c0665cf791e0b7a4c357faf934bf5..001f0afc462f522b7395100b48491f95585c9dbe 100644 (file)
@@ -690,8 +690,6 @@ Ext.define('PVE.Utils', { statics: {
            return 'RBD';
        } else if (value === 'sheepdog') {
            return 'Sheepdog';
-       } else if (value === 'nexenta') {
-           return 'Nexenta';
        } else if (value === 'zfs') {
            return 'ZFS';
        } else if (value === 'iscsidirect') {
index 03d8b6cebd15e19218717aac488ab4223d2b5c72..d957a2677b16f07702be04fa86e5610ca2db34c2 100644 (file)
@@ -46,8 +46,6 @@ Ext.define('PVE.dc.StorageView', {
                editor = 'PVE.storage.RBDEdit';
            } else if (type === 'sheepdog') {
                editor = 'PVE.storage.SheepdogEdit';
-           } else if (type === 'nexenta') {
-               editor = 'PVE.storage.NexentaEdit';
            } else if (type === 'zfs') {
                editor = 'PVE.storage.ZFSEdit';
            } else {
@@ -168,15 +166,6 @@ Ext.define('PVE.dc.StorageView', {
                                    win.show();
                                }
                            },
-                           {
-                               text: PVE.Utils.format_storage_type('nexenta'),
-                               iconCls: 'pve-itype-icon-node',
-                               handler: function() {
-                                   var win = Ext.create('PVE.storage.NexentaEdit', {});
-                                   win.on('destroy', reload);
-                                   win.show();
-                               }
-                           },
                            {
                                text: PVE.Utils.format_storage_type('zfs'),
                                iconCls: 'pve-itype-icon-node',
index 5501a523b85264809452fdde57817b34d4819be4..3409c854166cb14a8910a2eb63b8b788fd2f58d4 100644 (file)
@@ -69,8 +69,7 @@ Ext.define('PVE.window.Clone', {
             rec.data.type === 'rbd' ||
             rec.data.type === 'iscsi' ||
             rec.data.type === 'sheepdog' ||
-            rec.data.type === 'nexenta' ||
-                       rec.data.type === 'zfs'
+           rec.data.type === 'zfs'
            ) {
             me.formatsel.setValue('raw');
             me.formatsel.setDisabled(true);
index fc9dae89234f1d4ce5ba24fe6cb7834916eff33e..af5427afcb5858d028f435c3ea2475493c779465 100644 (file)
@@ -192,7 +192,6 @@ Ext.define('PVE.qemu.HDInputPanel', {
                        } else if (rec.data.type === 'lvm' || 
                                   rec.data.type === 'rbd' ||
                                   rec.data.type === 'sheepdog' ||
-                                  rec.data.type === 'nexenta' ||
                                   rec.data.type === 'zfs') {
                            me.hdfilesel.setDisabled(true);
                            me.hdfilesel.setVisible(false);
index d4baf229211c0819dc2229300ad0650cc6b7ca8f..53a9aae97f0f4045423b0e545e491c8f5025e8f9 100644 (file)
@@ -76,8 +76,7 @@ Ext.define('PVE.window.HDMove', {
                             me.formatsel.setDisabled(true);
                         } else if (rec.data.type === 'lvm' ||
                                    rec.data.type === 'rbd' ||
-                                   rec.data.type === 'sheepdog' ||
-                                   rec.data.type === 'nexenta'
+                                   rec.data.type === 'sheepdog'
                         ) {
                             me.formatsel.setValue('raw');
                             me.formatsel.setDisabled(true);
diff --git a/www/manager/storage/NexentaEdit.js b/www/manager/storage/NexentaEdit.js
deleted file mode 100644 (file)
index 4dce29e..0000000
+++ /dev/null
@@ -1,164 +0,0 @@
-Ext.define('PVE.storage.NexentaInputPanel', {
-    extend: 'PVE.panel.InputPanel',
-
-    onGetValues: function(values) {
-       var me = this;
-
-       if (me.create) {
-           values.type = 'nexenta';
-            values.content = 'images';
-
-       } else {
-           delete values.storage;
-       }
-
-       values.disable = values.enable ? 0 : 1;     
-       delete values.enable;
-
-       values.ssl = values.enablessl ? 1 : 0;      
-       delete values.enablessl;
-
-       return values;
-    },
-
-    initComponent : function() {
-       var me = this;
-
-
-       me.column1 = [
-           {
-               xtype: me.create ? 'textfield' : 'displayfield',
-               name: 'storage',
-               height: 22, // hack: set same height as text fields
-               value: me.storageId || '',
-               fieldLabel: 'ID',
-               vtype: 'StorageId',
-               allowBlank: false
-           },
-           {
-               xtype: me.create ? 'textfield' : 'displayfield',
-               name: 'portal',
-               height: 22, // hack: set same height as text fields
-               value: '',
-               fieldLabel: gettext('Portal'),
-               allowBlank: false
-           },
-           {
-               xtype: me.create ? 'textfield' : 'displayfield',
-               name: 'target',
-               height: 22, // hack: set same height as text fields
-               value: 'iqn.1986-03.com.sun:02:....',
-               fieldLabel: gettext('Target'),
-               allowBlank: false
-           },
-           {
-               xtype: me.create ? 'textfield' : 'displayfield',
-               name: 'pool',
-               height: 22, // hack: set same height as text fields
-               value: '',
-               fieldLabel: gettext('Pool'),
-               allowBlank: false
-           },
-           {
-               xtype: me.create ? 'textfield' : 'displayfield',
-               name: 'login',
-               height: 22, // hack: set same height as text fields
-               value: '',
-               fieldLabel: gettext('Login'),
-               allowBlank: false
-           },
-           {
-               xtype: me.create ? 'textfield' : 'displayfield',
-               name: 'password',
-               height: 22, // hack: set same height as text fields
-               value: '',
-               fieldLabel: gettext('Password'),
-               allowBlank: false
-           }
-       ];
-
-       me.column2 = [
-           {
-               xtype: 'pvecheckbox',
-               name: 'enable',
-               checked: true,
-               uncheckedValue: 0,
-               fieldLabel: gettext('Enable')
-           },
-           {
-               xtype: 'pvecheckbox',
-               name: 'enablessl',
-               checked: true,
-               uncheckedValue: 0,
-               fieldLabel: gettext('ssl')
-           },
-           {
-               xtype: me.create ? 'textfield' : 'displayfield',
-               name: 'blocksize',
-               height: 22, // hack: set same height as text fields
-               value: '4K',
-               fieldLabel: gettext('Block Size'),
-               allowBlank: false
-           }
-       ];
-
-       if (me.create || me.storageId !== 'local') {
-           me.column2.unshift({
-               xtype: 'PVE.form.NodeSelector',
-               name: 'nodes',
-               fieldLabel: gettext('Nodes'),
-               emptyText: gettext('All') + ' (' + 
-                   gettext('No restrictions') +')',
-               multiSelect: true,
-               autoSelect: false
-           });
-       }
-
-       me.callParent();
-    }
-});
-
-Ext.define('PVE.storage.NexentaEdit', {
-    extend: 'PVE.window.Edit',
-
-    initComponent : function() {
-       var me = this;
-       me.create = !me.storageId;
-
-       if (me.create) {
-            me.url = '/api2/extjs/storage';
-            me.method = 'POST';
-        } else {
-            me.url = '/api2/extjs/storage/' + me.storageId;
-            me.method = 'PUT';
-        }
-
-       var ipanel = Ext.create('PVE.storage.NexentaInputPanel', {
-           create: me.create,
-           storageId: me.storageId
-       });
-
-       Ext.apply(me, {
-            subject: PVE.Utils.format_storage_type('nexenta'),
-           isAdd: true,
-           items: [ ipanel ]
-       });
-       
-       me.callParent();
-
-        if (!me.create) {
-            me.load({
-                success:  function(response, options) {
-                    var values = response.result.data;
-                    if (values.nodes) {
-                        values.nodes = values.nodes.split(',');
-                    }
-                    values.enable = values.disable ? 0 : 1;
-                    values.enablessl = values.ssl ? 1 : 0;
-                    ipanel.setValues(values);
-                }
-            });
-        }
-    }
-});