[pve-devel] [PATCH proxmox-widget-toolkit 2/2] networkedit: add mtu field

Alexandre Derumier aderumier at odiso.com
Wed Jan 8 04:31:40 CET 2020


Signed-off-by: Alexandre Derumier <aderumier at odiso.com>
---
 node/NetworkEdit.js | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/node/NetworkEdit.js b/node/NetworkEdit.js
index ca0011f..eeb612c 100644
--- a/node/NetworkEdit.js
+++ b/node/NetworkEdit.js
@@ -250,6 +250,15 @@ Ext.define('Proxmox.node.NetworkEdit', {
 		    fieldLabel: gettext('Gateway') + ' (IPv6)',
 		    vtype: 'IP6Address',
 		    name: 'gateway6'
+		},
+		{
+		    xtype: 'proxmoxintegerfield',
+		    minValue: 1280,
+		    maxValue: 65520,
+		    deleteEmpty: !me.isCreate,
+		    fieldLabel: gettext('MTU'),
+		    value: me.isCreate ? 'mtu' : undefined,
+		    name: 'mtu'
 		}
 	    );
 	}
-- 
2.20.1




More information about the pve-devel mailing list