[pve-devel] [PATCH manager] ui: Parser: respect mtu in {parse, print}QemuNetwork
Dominik Csapak
d.csapak at proxmox.com
Tue Mar 23 13:27:11 CET 2021
Signed-off-by: Dominik Csapak <d.csapak at 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
More information about the pve-devel
mailing list