1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2025-08-30 05:50:12 +03:00

test-network: add test case for issue #30403

(cherry picked from commit 5e46ca9890)
This commit is contained in:
Yu Watanabe
2023-12-10 14:04:28 +09:00
committed by Zbigniew Jędrzejewski-Szmek
parent b641ced147
commit fbe064cc74
2 changed files with 8 additions and 0 deletions

View File

@ -108,3 +108,10 @@ 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
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

@ -3105,6 +3105,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')