Skip to content

Commit 14087a1

Browse files
committed
Fix VS test
1 parent 0377127 commit 14087a1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/test_route.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,7 @@ def test_RouteAddRemoveIpv4Route(self, dvs, testlog):
164164

165165
# add route entry
166166
dvs.runcmd("vtysh -c \"configure terminal\" -c \"ip route 2.2.2.0/24 10.0.0.1\"")
167+
dvs.runcmd("vtysh -c \"configure terminal\" -c \"ip route 0.0.0.0/0 10.0.0.1\"")
167168

168169
# check application database
169170
self.pdb.wait_for_entry("ROUTE_TABLE", "2.2.2.0/24")
@@ -176,6 +177,7 @@ def test_RouteAddRemoveIpv4Route(self, dvs, testlog):
176177

177178
# remove route entry
178179
dvs.runcmd("vtysh -c \"configure terminal\" -c \"no ip route 2.2.2.0/24 10.0.0.1\"")
180+
dvs.runcmd("vtysh -c \"configure terminal\" -c \"no ip route 0.0.0.0/0 10.0.0.1\"")
179181

180182
# check application database
181183
self.pdb.wait_for_deleted_entry("ROUTE_TABLE", "2.2.2.0/24")
@@ -236,6 +238,7 @@ def test_RouteAddRemoveIpv6Route(self, dvs, testlog):
236238

237239
# add route entry
238240
dvs.runcmd("vtysh -c \"configure terminal\" -c \"ipv6 route 3000::0/64 2000::2\"")
241+
dvs.runcmd("vtysh -c \"configure terminal\" -c \"ipv6 route ::/0 2000::2\"")
239242

240243
# check application database
241244
self.pdb.wait_for_entry("ROUTE_TABLE", "3000::/64")
@@ -248,6 +251,7 @@ def test_RouteAddRemoveIpv6Route(self, dvs, testlog):
248251

249252
# remove route entry
250253
dvs.runcmd("vtysh -c \"configure terminal\" -c \"no ipv6 route 3000::0/64 2000::2\"")
254+
dvs.runcmd("vtysh -c \"configure terminal\" -c \"no ipv6 route ::/0 2000::2\"")
251255

252256
# check application database
253257
self.pdb.wait_for_deleted_entry("ROUTE_TABLE", "3000::/64")

0 commit comments

Comments
 (0)