ui: Parser: respect mtu in {parse, print}QemuNetwork

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
Dominik Csapak 2021-03-23 13:27:11 +01:00 committed by Thomas Lamprecht
parent 736b919d04
commit ced67201ad

View File

@ -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;
},