Skip to content

Commit

Permalink
Fix KeyError in Everflow test (#4958)
Browse files Browse the repository at this point in the history
Signed-off-by: bingwang <bingwang@microsoft.com>
  • Loading branch information
bingwang-ms authored Jan 19, 2022
1 parent ff5d4d9 commit 9dba744
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/everflow/test_everflow_testbed.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ def add_dest_routes(self, duthosts, rand_one_dut_hostname, setup_info, tbinfo, d
return
duthost = duthosts[rand_one_dut_hostname]

default_traffic_port_type = "tor" if dest_port_type == "spine" else "spine"
default_traffic_port_type = DOWN_STREAM if dest_port_type == UP_STREAM else UP_STREAM
rx_port = setup_info[default_traffic_port_type]["dest_port"][0]
nexthop_ip = everflow_utils.get_neighbor_info(duthost, rx_port, tbinfo)

Expand Down

0 comments on commit 9dba744

Please sign in to comment.