Skip to content

Commit 11e885f

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) (cherry picked from commit 29c975f)
1 parent 83abec7 commit 11e885f

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
@@ -2684,6 +2684,7 @@ def _test_route_static(self, manage_foreign_routes):
26842684
self.assertIn('default via 149.10.125.65 proto static onlink', output)
26852685
self.assertIn('default via 149.10.124.64 proto static', output)
26862686
self.assertIn('default proto static', output)
2687+
self.assertIn('default via 1.1.8.104 proto static', output)
26872688

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

0 commit comments

Comments
 (0)