mirror of
https://github.com/systemd/systemd.git
synced 2024-11-23 10:13:34 +08:00
test-network: use different destination from gateway
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.
This commit is contained in:
parent
d7769b4d8e
commit
cd6507538a
@ -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
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user