use BondModeSelector & BondPolicySelector from widget toolkit
widget name stayed the same, so no need to change Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com> Reviewed-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
parent
b7c72c0e89
commit
f1df7184bf
@ -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 \
|
||||
|
@ -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']
|
||||
]
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user