diff options
author | Christian Poessinger <christian@poessinger.com> | 2020-07-17 19:55:24 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2020-07-17 19:55:24 +0200 |
commit | 1316e493983fd14e2282dfc6b107ddf68b16ed8a (patch) | |
tree | 5b6197dbfb510e520ded12e6a0346b4fa894aae9 /scripts/cli | |
parent | a06b0051ff3643fdf532db71cceb3a5c9cc40dea (diff) | |
download | vyos-1x-1316e493983fd14e2282dfc6b107ddf68b16ed8a.tar.gz vyos-1x-1316e493983fd14e2282dfc6b107ddf68b16ed8a.zip |
interfaces: assume minimum MTU 1280 bytes which always works
Diffstat (limited to 'scripts/cli')
-rw-r--r-- | scripts/cli/base_interfaces_test.py | 7 |
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) |