Skip to content

Commit 29c975f

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

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
@@ -2721,6 +2721,7 @@ def _test_route_static(self, manage_foreign_routes):
27212721
self.assertIn('default via 149.10.125.65 proto static onlink', output)
27222722
self.assertIn('default via 149.10.124.64 proto static', output)
27232723
self.assertIn('default proto static', output)
2724+
self.assertIn('default via 1.1.8.104 proto static', output)
27242725

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

0 commit comments

Comments
 (0)