public inbox for pve-devel@lists.proxmox.com
 help / color / mirror / Atom feed
From: Thomas Crummett <thomas@crummett.us>
To: pve-devel@lists.proxmox.com
Cc: Thomas Crummett <thomas@crummett.us>
Subject: [pve-devel] [PATCH pve-manager 1/1] Adds MTU to NetworkEdit
Date: Mon,  5 Sep 2022 04:11:50 -0700	[thread overview]
Message-ID: <20220905111150.10440-2-thomas@crummett.us> (raw)
In-Reply-To: <20220905111150.10440-1-thomas@crummett.us>

---
 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)




  reply	other threads:[~2022-09-05 11:12 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-09-05 11:11 [pve-devel] [PATCH pve-manager 0/1] Add " Thomas Crummett
2022-09-05 11:11 ` Thomas Crummett [this message]
2022-09-06  9:01   ` [pve-devel] [PATCH pve-manager 1/1] Adds " DERUMIER, Alexandre

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220905111150.10440-2-thomas@crummett.us \
    --to=thomas@crummett.us \
    --cc=pve-devel@lists.proxmox.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal