public inbox for pve-devel@lists.proxmox.com
 help / color / mirror / Atom feed
* [PATCH pve-container] fix #7571: emit mtu in ifupdown-based LXC guests
@ 2026-05-06 23:00 Ilan Karasik
  0 siblings, 0 replies; only message in thread
From: Ilan Karasik @ 2026-05-06 23:00 UTC (permalink / raw)
  To: pve-devel; +Cc: iamkarasik

From: iamkarasik <ilankarasik@gmail.com>

Signed-off-by: iamkarasik <ilankarasik@gmail.com>
---
 src/PVE/LXC/Setup/Debian.pm | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/PVE/LXC/Setup/Debian.pm b/src/PVE/LXC/Setup/Debian.pm
index 837397b..bbf73d5 100644
--- a/src/PVE/LXC/Setup/Debian.pm
+++ b/src/PVE/LXC/Setup/Debian.pm
@@ -284,6 +284,7 @@ sub setup_network {
                     $net->{needsroute6} = 1;
                 }
             }
+            $net->{mtu} = $d->{mtu} if defined($d->{mtu});
             $networks->{ $d->{name} } = $net if keys %$net;
         }
     }
@@ -337,6 +338,7 @@ sub setup_network {
                         $interfaces .= "\tgateway $gw\n";
                     }
                 }
+                $interfaces .= "\tmtu $net->{mtu}\n" if defined($net->{mtu});
                 foreach my $attr (@{ $section->{attr} }) {
                     $interfaces .= "\t$attr\n";
                 }
@@ -450,6 +452,7 @@ sub setup_network {
                     || $aname eq 'netmask'
                     || $aname eq 'gateway'
                     || $aname eq 'broadcast'
+                    || $aname eq 'mtu'
                 ) {
                     # skip
                 } else {
-- 
2.51.2




^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-05-07  9:19 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-05-06 23:00 [PATCH pve-container] fix #7571: emit mtu in ifupdown-based LXC guests Ilan Karasik

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