Skip to content

Commit

Permalink
The 10G port should not be ignored when composing ptfhost port map (#…
Browse files Browse the repository at this point in the history
…2503)

There are 10G ports in some of the testbeds.
To ignore them will cause port mapping misaligned and fail tests

Signed-off-by: Stephen Sun <stephens@nvidia.com>
  • Loading branch information
stephenxs authored Nov 11, 2020
1 parent c605372 commit 1317643
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/common/fixtures/ptfhost_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ def ptf_portmap_file(duthost, ptfhost):
filename (str): returns the filename copied to PTF host
"""
intfInfo = duthost.show_interface(command = "status")['ansible_facts']['int_status']
portList = natsorted([port for port in intfInfo if port.startswith('Ethernet') and intfInfo[port]['speed'] != '10G'])
portList = natsorted([port for port in intfInfo if port.startswith('Ethernet')])
portMapFile = "/tmp/default_interface_to_front_map.ini"
with open(portMapFile, 'w') as file:
file.write("# ptf host interface @ switch front port name\n")
Expand Down

0 comments on commit 1317643

Please sign in to comment.