[pve-devel] [PATCH manager 25/49] use BondModeSelector & BondPolicySelector from widget toolkit

Thomas Lamprecht t.lamprecht at proxmox.com
Tue Jan 23 11:05:42 CET 2018


widget name stayed the same, so no need to change

Signed-off-by: Thomas Lamprecht <t.lamprecht at proxmox.com>
Reviewed-by: Dominik Csapak <d.csapak at proxmox.com>
---
 www/manager6/Makefile                 |  1 -
 www/manager6/form/BondModeSelector.js | 42 -----------------------------------
 2 files changed, 43 deletions(-)
 delete mode 100644 www/manager6/form/BondModeSelector.js

diff --git a/www/manager6/Makefile b/www/manager6/Makefile
index 31a7e317..12daab1d 100644
--- a/www/manager6/Makefile
+++ b/www/manager6/Makefile
@@ -39,7 +39,6 @@ JSSRC= 				                 	\
 	form/ControllerSelector.js			\
 	form/EmailNotificationSelector.js		\
 	form/RealmComboBox.js				\
-	form/BondModeSelector.js			\
 	form/ViewSelector.js				\
 	form/NodeSelector.js				\
 	form/FileSelector.js				\
diff --git a/www/manager6/form/BondModeSelector.js b/www/manager6/form/BondModeSelector.js
deleted file mode 100644
index 021d613c..00000000
--- a/www/manager6/form/BondModeSelector.js
+++ /dev/null
@@ -1,42 +0,0 @@
-Ext.define('PVE.form.BondModeSelector', {
-    extend: 'PVE.form.KVComboBox',
-    alias: ['widget.bondModeSelector'],
-  
-    openvswitch: false,
-
-    initComponent: function() {
-	var me = this;
-
-	if (me.openvswitch) {
-           me.comboItems = [
-	       ['active-backup', 'active-backup'],
-	       ['balance-slb', 'balance-slb'],
-	       ['lacp-balance-slb', 'LACP (balance-slb)'],
-	       ['lacp-balance-tcp', 'LACP (balance-tcp)']
-	   ];
-	} else {
-            me.comboItems = [
-		['balance-rr', 'balance-rr'], 
-		['active-backup', 'active-backup'], 
-		['balance-xor', 'balance-xor'], 
-		['broadcast', 'broadcast'], 
-		['802.3ad', 'LACP (802.3ad)'], 
-		['balance-tlb', 'balance-tlb'], 
-		['balance-alb', 'balance-alb']
-	    ];
-	}
- 
-	me.callParent();
-    }
-});
-
-Ext.define('PVE.form.BondPolicySelector', {
-    extend: 'PVE.form.KVComboBox',
-    alias: ['widget.bondPolicySelector'],
-    comboItems: [
-	    ['layer2', 'layer2'],
-	    ['layer2+3', 'layer2+3'], 
-	    ['layer3+4', 'layer3+4']
-    ]
-});
-
-- 
2.14.2





More information about the pve-devel mailing list