From 1316e493983fd14e2282dfc6b107ddf68b16ed8a Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Fri, 17 Jul 2020 19:55:24 +0200 Subject: interfaces: assume minimum MTU 1280 bytes which always works --- scripts/cli/base_interfaces_test.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/scripts/cli/base_interfaces_test.py b/scripts/cli/base_interfaces_test.py index 00a6f16e4..489871b8b 100644 --- a/scripts/cli/base_interfaces_test.py +++ b/scripts/cli/base_interfaces_test.py @@ -117,8 +117,9 @@ class BasicInterfaceTest: if self._test_mtu is False: return None - # choose a MTU which works on every interface - mtu = '1400' + # choose MTU which works on every interface - 1280 is minimum for IPv6 so + # it will always work. + mtu = '1280' for intf in self._interfaces: self.session.set(self._base_path + [intf, 'mtu', mtu]) for option in self._options.get(intf, []): @@ -130,4 +131,4 @@ class BasicInterfaceTest: for intf in self._interfaces: with open('/sys/class/net/{}/mtu'.format(intf), 'r') as f: tmp = f.read().rstrip() - self.assertTrue(tmp == mtu) + self.assertEqual(tmp, mtu) -- cgit v1.2.3