public inbox for pve-devel@lists.proxmox.com
 help / color / mirror / Atom feed
* [pve-devel] [PATCH manager] ui: Parser: respect mtu in {parse, print}QemuNetwork
@ 2021-03-23 12:27 Dominik Csapak
  2021-04-22 10:03 ` Dominik Csapak
  2021-04-22 10:15 ` [pve-devel] applied: " Thomas Lamprecht
  0 siblings, 2 replies; 3+ messages in thread
From: Dominik Csapak @ 2021-03-23 12:27 UTC (permalink / raw)
  To: pve-devel

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
---
 www/manager6/Parser.js | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/www/manager6/Parser.js b/www/manager6/Parser.js
index b83a5d46..1a5fe1c2 100644
--- a/www/manager6/Parser.js
+++ b/www/manager6/Parser.js
@@ -142,6 +142,8 @@ Ext.define('PVE.Parser', {
 		res.queues = match_res[1];
 	    } else if ((match_res = p.match(/^trunks=(\d+(?:-\d+)?(?:;\d+(?:-\d+)?)*)$/)) !== null) {
 		res.trunks = match_res[1];
+	    } else if ((match_res = p.match(/^mtu=(\d+)$/)) !== null) {
+		res.mtu = match_res[1];
 	    } else {
 		errors = true;
 		return false; // break
@@ -181,6 +183,9 @@ Ext.define('PVE.Parser', {
 	if (net.trunks) {
 	    netstr += ",trunks=" + net.trunks;
 	}
+	if (net.mtu) {
+	    netstr += ",mtu=" + net.mtu;
+	}
 	return netstr;
     },
 
-- 
2.20.1





^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-04-22 10:16 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-23 12:27 [pve-devel] [PATCH manager] ui: Parser: respect mtu in {parse, print}QemuNetwork Dominik Csapak
2021-04-22 10:03 ` Dominik Csapak
2021-04-22 10:15 ` [pve-devel] applied: " Thomas Lamprecht

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