]>
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 = [ | |
12 | ['balance-tcp', 'balance-tcp'], | |
13 | ['balance-slb', 'balance-slb'], | |
14 | ['active-backup', 'active-backup'] | |
15 | ]; | |
16 | } else { | |
17 | me.data = [ | |
18 | ['balance-rr', 'balance-rr'], | |
19 | ['active-backup', 'active-backup'], | |
20 | ['balance-xor', 'balance-xor'], | |
21 | ['broadcast', 'broadcast'], | |
22 | ['802.3ad', '802.3ad'], | |
23 | ['balance-tlb', 'balance-tlb'], | |
24 | ['balance-alb', 'balance-alb'] | |
25 | ]; | |
26 | } | |
aff192e6 DM |
27 | |
28 | me.callParent(); | |
29 | } | |
30 | }); |