Skip to content

Commit

Permalink
Handle non-front-panel ports in is_rj45_port (sonic-net#2327)
Browse files Browse the repository at this point in the history
* Handle non-front-panel ports in is_rj45_port

Handle the cases that a port is not a front-panel port in is_rj45_port
Add mock test to cover the logic

Signed-off-by: Stephen Sun <stephens@nvidia.com>

* Use APIs in sonic_platform_base

Signed-off-by: Stephen Sun <stephens@nvidia.com>

Signed-off-by: Stephen Sun <stephens@nvidia.com>
  • Loading branch information
stephenxs authored and preetham-singh committed Nov 18, 2022
1 parent d94e18c commit d83c8f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utilities_common/platform_sfputil_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ def is_rj45_port(port_name):

port_type = None
try:
physical_port = logical_port_name_to_physical_port_list(port_name)
physical_port = platform_sfputil.logical_port_name_to_physical_port_list(port_name)
if physical_port:
port_type = platform_chassis.get_port_or_cage_type(physical_port[0])
except Exception as e:
Expand Down

0 comments on commit d83c8f5

Please sign in to comment.