]> git.proxmox.com Git - pve-manager.git/commitdiff
fix #3719: gui: expose LXC MTU option in web UI
authorDaniel Tschlatscher <d.tschlatscher@proxmox.com>
Thu, 3 Nov 2022 15:38:08 +0000 (16:38 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 16 Nov 2022 19:07:22 +0000 (20:07 +0100)
The option to set the mtu parameter for lxc containers already exists
in the backend. It just has to be exposed in the web UI as well.

Signed-off-by: Daniel Tschlatscher <d.tschlatscher@proxmox.com>
Reviewed-by:  Stefan Hanreich <s.hanreich@proxmox.com>
Tested-by:  Stefan Hanreich <s.hanreich@proxmox.com>
www/manager6/lxc/Network.js

index 7b6437c5a414a0e36f995c0f327e9c2f4da249e3..c6c4093474a85a1335e693c30d7efd5c479d26e3 100644 (file)
@@ -282,6 +282,18 @@ Ext.define('PVE.lxc.NetworkInputPanel', {
            },
        ];
 
+       me.advancedColumn1 = [
+           {
+               xtype: 'proxmoxintegerfield',
+               fieldLabel: 'MTU',
+               emptyText: gettext('Same as bridge'),
+               name: 'mtu',
+               value: cdata.mtu,
+               minValue: 576,
+               maxValue: 65535,
+           },
+       ];
+
        me.callParent();
     },
 });
@@ -519,6 +531,11 @@ Ext.define('PVE.lxc.NetworkView', {
                        }
                    },
                },
+               {
+                   header: gettext('MTU'),
+                   width: 80,
+                   dataIndex: 'mtu',
+               },
            ],
            listeners: {
                activate: me.load,
@@ -543,6 +560,7 @@ Ext.define('PVE.lxc.NetworkView', {
            'gw6',
            'tag',
            'firewall',
+           'mtu',
        ],
     });
 });