]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test-network: use different destination from gateway 32875/head
authorYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 17 May 2024 00:28:46 +0000 (09:28 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 17 May 2024 00:28:49 +0000 (09:28 +0900)
Previously, one of the test route has the same address in destination
and gateway. Even it is a test case, that's super spurious. Let's use a
different address.

test/test-network/conf/25-route-static.network
test/test-network/systemd-networkd-tests.py

index 7ef211d41099400e9fe82bbba40730ccbe79c945..5ddd7de61a5b1bd1c596bf8fe42715b9fdb3af31 100644 (file)
@@ -96,7 +96,7 @@ MultiPathRoute=149.10.124.59 10
 MultiPathRoute=149.10.124.60 5
 
 [Route]
-Destination=2001:1234:5:7fff:ff:ff:ff:ff/128
+Destination=2001:1234:5:bfff:ff:ff:ff:ff/128
 MultiPathRoute=2001:1234:5:6fff:ff:ff:ff:ff@test1 20
 MultiPathRoute=2001:1234:5:7fff:ff:ff:ff:ff@test1 30
 MultiPathRoute=2001:1234:5:8fff:ff:ff:ff:ff@dummy98 10
index 6e7ce7cbd8be5620cce627d66ab64d74f5c76726..6b1633a9614f0f4d4dc7fdaf205a41ea4bd5f632 100755 (executable)
@@ -3445,11 +3445,11 @@ class NetworkdNetworkTests(unittest.TestCase, Utilities):
         self.assertIn('dev dummy98 weight 10', output)
         self.assertIn('dev dummy98 weight 5', output)
 
-        print('### ip -6 route show 2001:1234:5:7fff:ff:ff:ff:ff')
-        output = check_output('ip -6 route show 2001:1234:5:7fff:ff:ff:ff:ff')
+        print('### ip -6 route show 2001:1234:5:bfff:ff:ff:ff:ff')
+        output = check_output('ip -6 route show 2001:1234:5:bfff:ff:ff:ff:ff')
         print(output)
         # old ip command does not show 'nexthop' keyword and weight...
-        self.assertIn('2001:1234:5:7fff:ff:ff:ff:ff', output)
+        self.assertIn('2001:1234:5:bfff:ff:ff:ff:ff', output)
         self.assertIn('via 2001:1234:5:6fff:ff:ff:ff:ff dev test1', output)
         self.assertIn('via 2001:1234:5:7fff:ff:ff:ff:ff dev test1', output)
         self.assertIn('via 2001:1234:5:8fff:ff:ff:ff:ff dev dummy98', output)