diff --git a/tests/everflow/everflow_test_utilities.py b/tests/everflow/everflow_test_utilities.py index f582d16e93d..7b461813d7c 100644 --- a/tests/everflow/everflow_test_utilities.py +++ b/tests/everflow/everflow_test_utilities.py @@ -165,6 +165,11 @@ def get_port_info(in_port_list, out_port_list, out_port_ptf_id_list, out_port_la peer_ip, _ = get_neighbor_info(duthost, spine_dest_ports[3]) + # Disable recursive route resolution as we have test case where we check + # if better unresolved route is there then it should not be picked by Mirror state DB + # This change is triggeed by Sonic PR#https://github.com/Azure/sonic-buildimage/pull/5600 + duthost.shell("vtysh -c \"configure terminal\" -c \"no ip nht resolve-via-default\"") + add_route(duthost, "30.0.0.1/24", peer_ip) duthost.command("mkdir -p {}".format(DUT_RUN_DIR)) @@ -175,6 +180,8 @@ def get_port_info(in_port_list, out_port_list, out_port_ptf_id_list, out_port_la remove_route(duthost, "30.0.0.1/24", peer_ip) + duthost.shell("vtysh -c \"configure terminal\" -c \"ip nht resolve-via-default\"") + # TODO: This should be refactored to some common area of sonic-mgmt. def add_route(duthost, prefix, nexthop):