5c6c2a
From 50c3405ce0a62439708c51be949f275d2714d887 Mon Sep 17 00:00:00 2001
5c6c2a
From: Robert LeBlanc <robert@leblancnet.us>
5c6c2a
Date: Thu, 21 Sep 2017 14:33:59 -0600
5c6c2a
Subject: [PATCH] Fix MTU on bond interface.
5c6c2a
5c6c2a
The MTU is only being set on the slave devices and the MTU of the
5c6c2a
bonding master is not being updated. This updates the bonding master and
5c6c2a
also changes the MTU on the slaves as expected.
5c6c2a
5c6c2a
Signed-Off-By: Robert LeBlanc <robert@leblancnet.us>
5c6c2a
5c6c2a
Cherry-picked from: d0eabcab43f2c47ca38dba41453f97c6a7d362fc
5c6c2a
Resolves: #1494265
5c6c2a
---
5c6c2a
 modules.d/40network/ifup.sh | 2 +-
5c6c2a
 1 file changed, 1 insertion(+), 1 deletion(-)
5c6c2a
5c6c2a
diff --git a/modules.d/40network/ifup.sh b/modules.d/40network/ifup.sh
5c6c2a
index 38c7b709..b3219fc1 100755
5c6c2a
--- a/modules.d/40network/ifup.sh
5c6c2a
+++ b/modules.d/40network/ifup.sh
5c6c2a
@@ -250,7 +250,7 @@ if [ -z "$NO_BOND_MASTER" ]; then
5c6c2a
             done
5c6c2a
 
5c6c2a
             # Set mtu on bond master
5c6c2a
-            [ -n "$bondmtu" ] && ip link set mtu $bondmtu dev $netif
5c6c2a
+            [ -n "$bondmtu" ] && ip link set mtu $bondmtu dev $bondname
5c6c2a
 
5c6c2a
             # add the bits to setup the needed post enslavement parameters
5c6c2a
             for arg in $bondoptions ; do