From: Yu Watanabe Date: Thu, 6 Jul 2023 21:57:04 +0000 (+0900) Subject: test-network: add one more testcase for DHCPv4 classless route X-Git-Tag: v254-rc2~82^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F28286%2Fhead;p=thirdparty%2Fsystemd.git test-network: add one more testcase for DHCPv4 classless route For issue #28280. --- diff --git a/test/test-network/systemd-networkd-tests.py b/test/test-network/systemd-networkd-tests.py index 3138a102b75..ee9bb81fef2 100755 --- a/test/test-network/systemd-networkd-tests.py +++ b/test/test-network/systemd-networkd-tests.py @@ -4829,7 +4829,7 @@ class NetworkdDHCPClientTests(unittest.TestCase, Utilities): ] if classless: additional_options += [ - '--dhcp-option=option:classless-static-route,0.0.0.0/0,192.168.5.4,8.0.0.0/8,192.168.5.5' + '--dhcp-option=option:classless-static-route,0.0.0.0/0,192.168.5.4,8.0.0.0/8,192.168.5.5,192.168.5.64/26,192.168.5.5' ] start_dnsmasq(*additional_options) self.wait_online(['veth99:routable', 'veth-peer:routable']) @@ -4842,6 +4842,7 @@ class NetworkdDHCPClientTests(unittest.TestCase, Utilities): if classless: self.assertRegex(output, r'default via 192.168.5.4 proto dhcp src 192.168.5.[0-9]* metric 1024') self.assertRegex(output, r'8.0.0.0/8 via 192.168.5.5 proto dhcp src 192.168.5.[0-9]* metric 1024') + self.assertRegex(output, r'192.168.5.64/26 via 192.168.5.5 proto dhcp src 192.168.5.[0-9]* metric 1024') self.assertRegex(output, r'192.168.5.4 proto dhcp scope link src 192.168.5.[0-9]* metric 1024') self.assertRegex(output, r'192.168.5.5 proto dhcp scope link src 192.168.5.[0-9]* metric 1024') else: