Skip to content

Commit fbe064c

Browse files
yuwatakeszybz
authored andcommitted
test-network: add test case for issue #30403
(cherry picked from commit 5e46ca9)
1 parent b641ced commit fbe064c

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

test/test-network/conf/25-route-static.network

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,3 +108,10 @@ MultiPathRoute=2001:1234:5:6fff:ff:ff:ff:ff@test1 20
108108
MultiPathRoute=2001:1234:5:7fff:ff:ff:ff:ff@test1 30
109109
MultiPathRoute=2001:1234:5:8fff:ff:ff:ff:ff@dummy98 10
110110
MultiPathRoute=2001:1234:5:9fff:ff:ff:ff:ff@dummy98 5
111+
112+
[Address]
113+
Address=1.1.8.105/31
114+
Peer=1.1.8.104/31
115+
116+
[Route]
117+
Gateway=1.1.8.104

test/test-network/systemd-networkd-tests.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3105,6 +3105,7 @@ def _test_route_static(self, manage_foreign_routes):
31053105
self.assertIn('default via 149.10.125.65 proto static onlink', output)
31063106
self.assertIn('default via 149.10.124.64 proto static', output)
31073107
self.assertIn('default proto static', output)
3108+
self.assertIn('default via 1.1.8.104 proto static', output)
31083109

31093110
print('### ip -4 route show table local dev dummy98')
31103111
output = check_output('ip -4 route show table local dev dummy98')

0 commit comments

Comments
 (0)