mirror of
https://git.proxmox.com/git/proxmox-widget-toolkit
synced 2025-06-04 10:28:05 +00:00

lots of churn and changes but will allow to enforce linting again in the build system. Also switch over from var to let. Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
43 lines
857 B
JavaScript
43 lines
857 B
JavaScript
Ext.define('Proxmox.form.BondModeSelector', {
|
|
extend: 'Proxmox.form.KVComboBox',
|
|
alias: ['widget.bondModeSelector'],
|
|
|
|
openvswitch: false,
|
|
|
|
initComponent: function() {
|
|
let me = this;
|
|
|
|
if (me.openvswitch) {
|
|
me.comboItems = Proxmox.Utils.bond_mode_array([
|
|
'active-backup',
|
|
'balance-slb',
|
|
'lacp-balance-slb',
|
|
'lacp-balance-tcp',
|
|
]);
|
|
} else {
|
|
me.comboItems = Proxmox.Utils.bond_mode_array([
|
|
'balance-rr',
|
|
'active-backup',
|
|
'balance-xor',
|
|
'broadcast',
|
|
'802.3ad',
|
|
'balance-tlb',
|
|
'balance-alb',
|
|
]);
|
|
}
|
|
|
|
me.callParent();
|
|
},
|
|
});
|
|
|
|
Ext.define('Proxmox.form.BondPolicySelector', {
|
|
extend: 'Proxmox.form.KVComboBox',
|
|
alias: ['widget.bondPolicySelector'],
|
|
comboItems: [
|
|
['layer2', 'layer2'],
|
|
['layer2+3', 'layer2+3'],
|
|
['layer3+4', 'layer3+4'],
|
|
],
|
|
});
|
|
|