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