1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2024-12-22 13:33:56 +03:00

test-network: add test case for issue #30403

(cherry picked from commit 5e46ca9890)
(cherry picked from commit fbe064cc74)
(cherry picked from commit d948b169ad)
(cherry picked from commit 29c975fca0)
This commit is contained in:
Yu Watanabe 2023-12-10 14:04:28 +09:00 committed by Luca Boccassi
parent 83abec719e
commit 11e885ffa3
2 changed files with 8 additions and 0 deletions

View File

@ -98,3 +98,10 @@ MultiPathRoute=2001:1234:5:9fff:ff:ff:ff:ff@dummy98 5
Destination=192.168.10.2/32
MultiPathRoute=2001:1234:5:8fff:ff:ff:ff:ff@dummy98 10
MultiPathRoute=2001:1234:5:9fff:ff:ff:ff:ff@dummy98 5
[Address]
Address=1.1.8.105/31
Peer=1.1.8.104/31
[Route]
Gateway=1.1.8.104

View File

@ -2684,6 +2684,7 @@ class NetworkdNetworkTests(unittest.TestCase, Utilities):
self.assertIn('default via 149.10.125.65 proto static onlink', output)
self.assertIn('default via 149.10.124.64 proto static', output)
self.assertIn('default proto static', output)
self.assertIn('default via 1.1.8.104 proto static', output)
print('### ip -4 route show table local dev dummy98')
output = check_output('ip -4 route show table local dev dummy98')