mirror of
https://git.proxmox.com/git/proxmox-widget-toolkit
synced 2025-05-21 15:28:20 +00:00
networkedit: bond: add bond-primary field
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
This commit is contained in:
parent
30076ed6cc
commit
b154853a74
@ -110,6 +110,13 @@ Ext.define('Proxmox.node.NetworkEdit', {
|
||||
disabled: true
|
||||
});
|
||||
|
||||
var primaryfield = Ext.createWidget('textfield', {
|
||||
fieldLabel: gettext('bond-primary'),
|
||||
name: 'bond-primary',
|
||||
value: '',
|
||||
disabled: true
|
||||
});
|
||||
|
||||
column2.push({
|
||||
xtype: 'bondModeSelector',
|
||||
fieldLabel: gettext('Mode'),
|
||||
@ -120,9 +127,17 @@ Ext.define('Proxmox.node.NetworkEdit', {
|
||||
if (value === 'balance-xor' ||
|
||||
value === '802.3ad') {
|
||||
policySelector.setDisabled(false);
|
||||
primaryfield.setDisabled(true);
|
||||
primaryfield.setValue('');
|
||||
} else if (value === 'active-backup') {
|
||||
primaryfield.setDisabled(false);
|
||||
policySelector.setDisabled(true);
|
||||
policySelector.setValue('');
|
||||
} else {
|
||||
policySelector.setDisabled(true);
|
||||
policySelector.setValue('');
|
||||
primaryfield.setDisabled(true);
|
||||
primaryfield.setValue('');
|
||||
}
|
||||
}
|
||||
},
|
||||
@ -130,6 +145,7 @@ Ext.define('Proxmox.node.NetworkEdit', {
|
||||
});
|
||||
|
||||
column2.push(policySelector);
|
||||
column2.push(primaryfield);
|
||||
|
||||
} else if (me.iftype === 'OVSBond') {
|
||||
column2.push({
|
||||
|
Loading…
Reference in New Issue
Block a user