]>
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() { | |
8 | var me = this; | |
9 | ||
10 | if (me.openvswitch) { | |
11 | me.comboItems = [ | |
12 | ['active-backup', 'active-backup'], | |
13 | ['balance-slb', 'balance-slb'], | |
14 | ['lacp-balance-slb', 'LACP (balance-slb)'], | |
15 | ['lacp-balance-tcp', 'LACP (balance-tcp)'] | |
16 | ]; | |
17 | } else { | |
18 | me.comboItems = [ | |
19 | ['balance-rr', 'balance-rr'], | |
20 | ['active-backup', 'active-backup'], | |
21 | ['balance-xor', 'balance-xor'], | |
22 | ['broadcast', 'broadcast'], | |
23 | ['802.3ad', 'LACP (802.3ad)'], | |
24 | ['balance-tlb', 'balance-tlb'], | |
25 | ['balance-alb', 'balance-alb'] | |
26 | ]; | |
27 | } | |
28 | ||
29 | me.callParent(); | |
30 | } | |
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'], | |
39 | ['layer3+4', 'layer3+4'] | |
40 | ] | |
41 | }); | |
42 |