Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add reinit for RJ45 to avoid exception
Browse files Browse the repository at this point in the history
Signed-off-by: Stephen Sun <[email protected]>
stephenxs authored and keboliu committed Jun 15, 2022
1 parent b14c965 commit 4156651
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions platform/mellanox/mlnx-platform-api/sonic_platform/sfp.py
Original file line number Diff line number Diff line change
@@ -1013,3 +1013,10 @@ def get_reset_status(self):

def read_eeprom(self, offset, num_bytes):
return None

def reinit(self):
"""
Nothing to do for RJ45. Just provide it to avoid exception
:return:
"""
return

0 comments on commit 4156651

Please sign in to comment.