]>
Commit | Line | Data |
---|---|---|
aff192e6 DM |
1 | Ext.define('PVE.form.BondModeSelector', { |
2 | extend: 'PVE.form.KVComboBox', | |
3 | alias: ['widget.bondModeSelector'], | |
4 | ||
d11733f8 DM |
5 | openvswitch: false, |
6 | ||
aff192e6 DM |
7 | initComponent: function() { |
8 | var me = this; | |
9 | ||
d11733f8 DM |
10 | if (me.openvswitch) { |
11 | me.data = [ | |
10a9563e | 12 | ['active-backup', 'active-backup'], |
d11733f8 | 13 | ['balance-slb', 'balance-slb'], |
10a9563e DM |
14 | ['lacp-balance-slb', 'LACP (balance-slb)'], |
15 | ['lacp-balance-tcp', 'LACP (balance-tcp)'] | |
d11733f8 DM |
16 | ]; |
17 | } else { | |
18 | me.data = [ | |
19 | ['balance-rr', 'balance-rr'], | |
20 | ['active-backup', 'active-backup'], | |
21 | ['balance-xor', 'balance-xor'], | |
22 | ['broadcast', 'broadcast'], | |
10a9563e | 23 | ['802.3ad', 'LACP (layer2)'], |
d11733f8 DM |
24 | ['balance-tlb', 'balance-tlb'], |
25 | ['balance-alb', 'balance-alb'] | |
26 | ]; | |
27 | } | |
aff192e6 DM |
28 | |
29 | me.callParent(); | |
30 | } | |
31 | }); |