summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--scripts/cli/base_interfaces_test.py7
1 files 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)