[lxc-devel] [lxd/master] tests: Don't assume bridge MTU can be forced up
stgraber on Github
lxc-bot at linuxcontainers.org
Tue May 26 01:55:19 UTC 2020
A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 445 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20200525/4c07f3f8/attachment.bin>
-------------- next part --------------
From 29308a9ef24a9caf1a8ba038fe76170a58e6e68a Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?St=C3=A9phane=20Graber?= <stgraber at ubuntu.com>
Date: Mon, 25 May 2020 21:47:54 -0400
Subject: [PATCH] tests: Don't assume bridge MTU can be forced up
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Older kernels prevent bridge MTU from being raised to value higher than
lowest member.
Signed-off-by: Stéphane Graber <stgraber at ubuntu.com>
---
test/suites/container_devices_nic_bridged.sh | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/test/suites/container_devices_nic_bridged.sh b/test/suites/container_devices_nic_bridged.sh
index dbde3897dd..14e27ab3f3 100644
--- a/test/suites/container_devices_nic_bridged.sh
+++ b/test/suites/container_devices_nic_bridged.sh
@@ -276,8 +276,10 @@ test_container_devices_nic_bridged() {
fi
# Check that MTU is inherited from parent device when not specified on device.
- lxc network set "${brName}" bridge.mtu "1405"
+ lxc stop "${ctName}" --force
lxc config device unset "${ctName}" eth0 mtu
+ lxc network set "${brName}" bridge.mtu "1405"
+ lxc start "${ctName}"
if ! lxc exec "${ctName}" -- grep "1405" /sys/class/net/eth0/mtu ; then
echo "mtu not inherited from parent"
false
More information about the lxc-devel
mailing list