Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Mellanox] Enable get_rx_los API support in CMIS cable host mgmt mode #20743

Merged
merged 2 commits into from
Nov 13, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Added support for FW control mode
  • Loading branch information
mihirpat1 committed Nov 11, 2024
commit e6dd1d18a4f655cde827f488e13a1edad8dfde2a
5 changes: 5 additions & 0 deletions platform/mellanox/mlnx-platform-api/sonic_platform/sfp.py
Original file line number Diff line number Diff line change
@@ -815,6 +815,11 @@ def get_rx_los(self):
list: [False] * channels
"""
api = self.get_xcvr_api()
try:
if self.is_sw_control():
return api.get_rx_los() if api else None
except Exception as e:
print(e)
return [False] * api.NUM_CHANNELS if api else None

def get_tx_fault(self):
Loading