]>
Commit | Line | Data |
---|---|---|
fa6dc53b DC |
1 | Ext.define('Proxmox.form.BondModeSelector', { |
2 | extend: 'Proxmox.form.KVComboBox', | |
3 | alias: ['widget.bondModeSelector'], | |
4 | ||
5 | openvswitch: false, | |
6 | ||
7 | initComponent: function() { | |
05a977a2 | 8 | let me = this; |
fa6dc53b DC |
9 | |
10 | if (me.openvswitch) { | |
8311c0b1 DC |
11 | me.comboItems = Proxmox.Utils.bond_mode_array([ |
12 | 'active-backup', | |
13 | 'balance-slb', | |
14 | 'lacp-balance-slb', | |
15 | 'lacp-balance-tcp', | |
16 | ]); | |
fa6dc53b | 17 | } else { |
8311c0b1 DC |
18 | me.comboItems = Proxmox.Utils.bond_mode_array([ |
19 | 'balance-rr', | |
20 | 'active-backup', | |
21 | 'balance-xor', | |
22 | 'broadcast', | |
23 | '802.3ad', | |
24 | 'balance-tlb', | |
25 | 'balance-alb', | |
26 | ]); | |
fa6dc53b DC |
27 | } |
28 | ||
29 | me.callParent(); | |
01031528 | 30 | }, |
fa6dc53b DC |
31 | }); |
32 | ||
33 | Ext.define('Proxmox.form.BondPolicySelector', { | |
34 | extend: 'Proxmox.form.KVComboBox', | |
35 | alias: ['widget.bondPolicySelector'], | |
36 | comboItems: [ | |
37 | ['layer2', 'layer2'], | |
38 | ['layer2+3', 'layer2+3'], | |
01031528 TL |
39 | ['layer3+4', 'layer3+4'], |
40 | ], | |
fa6dc53b DC |
41 | }); |
42 |