From 288f58c0b4d29ee7b075308ee963a7949aa9ee0e Mon Sep 17 00:00:00 2001 From: Susant Sahani Date: Fri, 18 Aug 2023 14:00:46 +0530 Subject: [PATCH] CI: network - Add test for route hoplimit --- test/test-network/conf/25-route-static.network | 4 ++++ test/test-network/systemd-networkd-tests.py | 1 + 2 files changed, 5 insertions(+) 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') -- 2.47.3