Skip to content

Commit

Permalink
VS test to be added later
Browse files Browse the repository at this point in the history
  • Loading branch information
prsunny committed Sep 24, 2021
1 parent 60df4cd commit 54ee80c
Showing 1 changed file with 0 additions and 23 deletions.
23 changes: 0 additions & 23 deletions tests/test_mux.py
Original file line number Diff line number Diff line change
Expand Up @@ -298,29 +298,6 @@ def create_and_test_route(self, appdb, asicdb, dvs, dvs_route):

self.check_nexthop_in_asic_db(asicdb, rtkeys[0])

# Check route set flow and changing nexthop
self.set_mux_state(appdb, "Ethernet4", "active")

ps = swsscommon.ProducerStateTable(pdb.db_connection, "ROUTE_TABLE")
fvs = swsscommon.FieldValuePairs([("nexthop", self.SERV2_IPV4), ("ifname", "Vlan1000")])
ps.set(rtprefix, fvs)

# Check if route was propagated to ASIC DB
rtkeys = dvs_route.check_asicdb_route_entries([rtprefix])

# Change Mux status for Ethernet0 and expect no change to replaced route
self.set_mux_state(appdb, "Ethernet0", "standby")
self.check_nexthop_in_asic_db(asicdb, rtkeys[0])

self.set_mux_state(appdb, "Ethernet4", "standby")
self.check_nexthop_in_asic_db(asicdb, rtkeys[0], True)

# Delete the route
ps._del(rtprefix)

self.set_mux_state(appdb, "Ethernet4", "active")
dvs_route.check_asicdb_deleted_route_entries([rtprefix])

# Test ECMP routes

self.set_mux_state(appdb, "Ethernet0", "active")
Expand Down

0 comments on commit 54ee80c

Please sign in to comment.