summaryrefslogtreecommitdiffstats
path: root/test/test-network/systemd-networkd-tests.py
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2023-07-06 23:57:04 +0200
committerYu Watanabe <watanabe.yu+github@gmail.com>2023-07-06 23:57:08 +0200
commit86f6760038477e9e27ccea580f1b3b27328a98a7 (patch)
tree9da8a968f915de3deb93ee03368d9d27a3f50cde /test/test-network/systemd-networkd-tests.py
parentnetwork/dhcp4: do not ignore the gateway even if the destination is in the sa... (diff)
downloadsystemd-86f6760038477e9e27ccea580f1b3b27328a98a7.tar.xz
systemd-86f6760038477e9e27ccea580f1b3b27328a98a7.zip
test-network: add one more testcase for DHCPv4 classless route
For issue #28280.
Diffstat (limited to '')
-rwxr-xr-xtest/test-network/systemd-networkd-tests.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/test-network/systemd-networkd-tests.py b/test/test-network/systemd-networkd-tests.py
index 3138a102b7..ee9bb81fef 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: