From: Susant Sahani Date: Fri, 18 Aug 2023 08:30:46 +0000 (+0530) Subject: CI: network - Add test for route hoplimit X-Git-Tag: v255-rc1~687^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F28871%2Fhead;p=thirdparty%2Fsystemd.git CI: network - Add test for route hoplimit --- diff --git a/test/test-network/conf/25-route-static.network b/test/test-network/conf/25-route-static.network index 6aa3ec66dcf..44acb19f345 100644 --- a/test/test-network/conf/25-route-static.network +++ b/test/test-network/conf/25-route-static.network @@ -44,6 +44,10 @@ InitialAdvertisedReceiveWindow=30 Destination=192.168.1.3 TCPAdvertisedMaximumSegmentSize=30 +[Route] +Destination=192.168.1.4 +HopLimit=122 + [Route] Type=blackhole Destination=202.54.1.2 diff --git a/test/test-network/systemd-networkd-tests.py b/test/test-network/systemd-networkd-tests.py index 2257003c0b4..5910d0d8da6 100755 --- a/test/test-network/systemd-networkd-tests.py +++ b/test/test-network/systemd-networkd-tests.py @@ -2946,6 +2946,7 @@ class NetworkdNetworkTests(unittest.TestCase, Utilities): self.assertIn('192.168.1.1 proto static scope link initcwnd 20', output) self.assertIn('192.168.1.2 proto static scope link initrwnd 30', output) self.assertIn('192.168.1.3 proto static scope link advmss 30', output) + self.assertIn('192.168.1.4 proto static scope link hoplimit 122', output) self.assertIn('multicast 149.10.123.4 proto static', output) print('### ip -4 route show dev dummy98 default')