mirror of
https://git.proxmox.com/git/proxmox-widget-toolkit
synced 2025-05-05 12:39:28 +00:00

this is needed for the node/NetworkEdit.js Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
43 lines
1007 B
JavaScript
43 lines
1007 B
JavaScript
Ext.define('Proxmox.form.BondModeSelector', {
|
|
extend: 'Proxmox.form.KVComboBox',
|
|
alias: ['widget.bondModeSelector'],
|
|
|
|
openvswitch: false,
|
|
|
|
initComponent: function() {
|
|
var me = this;
|
|
|
|
if (me.openvswitch) {
|
|
me.comboItems = [
|
|
['active-backup', 'active-backup'],
|
|
['balance-slb', 'balance-slb'],
|
|
['lacp-balance-slb', 'LACP (balance-slb)'],
|
|
['lacp-balance-tcp', 'LACP (balance-tcp)']
|
|
];
|
|
} else {
|
|
me.comboItems = [
|
|
['balance-rr', 'balance-rr'],
|
|
['active-backup', 'active-backup'],
|
|
['balance-xor', 'balance-xor'],
|
|
['broadcast', 'broadcast'],
|
|
['802.3ad', 'LACP (802.3ad)'],
|
|
['balance-tlb', 'balance-tlb'],
|
|
['balance-alb', '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']
|
|
]
|
|
});
|
|
|