diff --git a/tests/drop_packets/drop_packets.py b/tests/drop_packets/drop_packets.py index 2d50931fb68..c39f5117c5c 100644 --- a/tests/drop_packets/drop_packets.py +++ b/tests/drop_packets/drop_packets.py @@ -165,7 +165,8 @@ def is_mellanox_fanout(duthost, localhost): logger.info("Get dut_facts failed, reason:{}".format(e.results['msg'])) return False - fanout_host = dut_facts["device_conn"][duthost.hostname]["Ethernet0"]["peerdevice"] + intf = list(dut_facts["device_conn"][duthost.hostname].keys())[0] + fanout_host = dut_facts["device_conn"][duthost.hostname][intf]["peerdevice"] try: fanout_facts = \