[pve-devel] [PATCH manager] ui: Parser: respect mtu in {parse, print}QemuNetwork
Dominik Csapak
d.csapak at proxmox.com
Thu Apr 22 12:03:12 CEST 2021
On 3/23/21 13:27, Dominik Csapak wrote:
> 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;
> },
>
>
any comment?
More information about the pve-devel
mailing list