Blame SOURCES/0516-Fix-MTU-on-bond-interface.patch

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