Skip to content

Commit

Permalink
Fix VS test
Browse files Browse the repository at this point in the history
  • Loading branch information
prsunny committed Nov 29, 2021
1 parent 0377127 commit 14087a1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/test_route.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@ def test_RouteAddRemoveIpv4Route(self, dvs, testlog):

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

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

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

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

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

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

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

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

0 comments on commit 14087a1

Please sign in to comment.