me.subject = Proxmox.Utils.render_network_iface_type(me.iftype);
- var column2 = [];
+ let column1 = [],
+ column2 = [],
+ advancedColumn1 = [],
+ advancedColumn2 = [];
- if (!(me.iftype === 'OVSIntPort' || me.iftype === 'OVSPort' ||
- me.iftype === 'OVSBond')) {
+ if (!(me.iftype === 'OVSIntPort' || me.iftype === 'OVSPort' || me.iftype === 'OVSBond')) {
column2.push({
xtype: 'proxmoxcheckbox',
fieldLabel: gettext('Autostart'),
method = 'PUT';
}
- var column1 = [{
+ column1.push({
xtype: 'hiddenfield',
name: 'type',
value: me.iftype
}
}
}
- }];
+ });
if (me.iftype === 'OVSBond') {
column1.push(
vtype: 'IP6Address',
name: 'gateway6'
},
+ );
+ advancedColumn1. push(
{
xtype: 'proxmoxintegerfield',
minValue: 1280,
maxValue: 65520,
deleteEmpty: !me.isCreate,
+ emptyText: 1500,
fieldLabel: 'MTU',
name: 'mtu'
- }
+ },
);
}
items: {
xtype: 'inputpanel',
column1: column1,
- column2: column2
+ column2: column2,
+ advancedColumn1: advancedColumn1,
+ advancedColumn2: advancedColumn2,
}
});