[pve-devel] [PATCH pve-manager v2 1/1] qemu: network: adjust MTU emptyText to match new default behavior

Stefan Hanreich s.hanreich at proxmox.com
Thu Apr 17 12:48:54 CEST 2025


Leaving the MTU field unset now defaults to the bridge MTU, rather
than 1500. Reflect this change by indicating the new behavior in the
emptyText of the MTU field. While we're at it, add a gettext call so
it can be translated. I've taken the same text as from the container
dialogue, so it should already use existing translations.

Signed-off-by: Stefan Hanreich <s.hanreich at proxmox.com>
---
 www/manager6/qemu/NetworkEdit.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/www/manager6/qemu/NetworkEdit.js b/www/manager6/qemu/NetworkEdit.js
index 4917eba5f..5e7ed22d1 100644
--- a/www/manager6/qemu/NetworkEdit.js
+++ b/www/manager6/qemu/NetworkEdit.js
@@ -113,7 +113,7 @@ Ext.define('PVE.qemu.NetworkInputPanel', {
 		    disabled: '{!isVirtio}',
 		    value: '{mtu}',
 		},
-		emptyText: '1500 (1 = bridge MTU)',
+		emptyText: gettext('Same as bridge'),
 		minValue: 1,
 		maxValue: 65520,
 		allowBlank: true,
-- 
2.39.5




More information about the pve-devel mailing list