Skip to content

Commit d948b16

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

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
@@ -98,3 +98,10 @@ MultiPathRoute=2001:1234:5:9fff:ff:ff:ff:ff@dummy98 5
9898
Destination=192.168.10.2/32
9999
MultiPathRoute=2001:1234:5:8fff:ff:ff:ff:ff@dummy98 10
100100
MultiPathRoute=2001:1234:5:9fff:ff:ff:ff:ff@dummy98 5
101+
102+
[Address]
103+
Address=1.1.8.105/31
104+
Peer=1.1.8.104/31
105+
106+
[Route]
107+
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
@@ -2832,6 +2832,7 @@ def _test_route_static(self, manage_foreign_routes):
28322832
self.assertIn('default via 149.10.125.65 proto static onlink', output)
28332833
self.assertIn('default via 149.10.124.64 proto static', output)
28342834
self.assertIn('default proto static', output)
2835+
self.assertIn('default via 1.1.8.104 proto static', output)
28352836

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

0 commit comments

Comments
 (0)