[pve-devel] [PATCH pve-manager 1/1] Adds MTU to NetworkEdit

Thomas Crummett thomas at crummett.us
Mon Sep 5 13:11:50 CEST 2022


---
 www/manager6/qemu/NetworkEdit.js | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/www/manager6/qemu/NetworkEdit.js b/www/manager6/qemu/NetworkEdit.js
index b39cffdc..8e70e386 100644
--- a/www/manager6/qemu/NetworkEdit.js
+++ b/www/manager6/qemu/NetworkEdit.js
@@ -15,6 +15,7 @@ Ext.define('PVE.qemu.NetworkInputPanel', {
 	    me.network.bridge = values.bridge;
 	    me.network.tag = values.tag;
 	    me.network.firewall = values.firewall;
+	    me.network.mtu = values.mtu;
 	}
 	me.network.macaddr = values.macaddr;
 	me.network.disconnect = values.disconnect;
@@ -88,6 +89,17 @@ Ext.define('PVE.qemu.NetworkInputPanel', {
 	];
 
 	me.advancedColumn1 = [
+	    {
+		xtype: 'proxmoxintegerfield',
+		name: 'mtu',
+		fieldLabel: 'MTU',
+		minimum: 1,
+		emptyText: '1500',
+		submitEmpty: false,
+		cbind: {
+			deleteEmpty: '{!isCreate}',
+		},
+	    },
 	    {
 		xtype: 'proxmoxcheckbox',
 		fieldLabel: gettext('Disconnect'),
@@ -105,6 +117,7 @@ Ext.define('PVE.qemu.NetworkInputPanel', {
 		    change: function(cb, value) {
 			var fields = [
 			    'disconnect',
+			    'mtu',
 			    'bridge',
 			    'tag',
 			    'firewall',
-- 
2.32.0 (Apple Git-132)





More information about the pve-devel mailing list