Skip to content

Commit

Permalink
tests fixes for zero ports setups
Browse files Browse the repository at this point in the history
Signed-off-by: Sharon Lutati <slutati@nvidia.com>
  • Loading branch information
slutati1536 committed Jun 23, 2021
1 parent b96e0f4 commit 447d6fc
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tests/common/platform/interface_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,9 +123,8 @@ def get_port_map(dut, asic_index=None):
port_mapping_res = {}
port_mapping = cfg_facts.get("PORT", {})
for port, port_dict_info in port_mapping.items():
port_alias = port_dict_info["alias"]
port_alias_number = int(re.search('etp(\d+)', port_alias).group(1))
port_mapping_res[port] = [port_alias_number]
port_index = port_dict_info["index"]
port_mapping_res[port] = [int(port_index)]
return port_mapping_res


Expand Down

0 comments on commit 447d6fc

Please sign in to comment.