Skip to content

Commit

Permalink
Generate media key in platform sepcific way
Browse files Browse the repository at this point in the history
Add API to support the generation of the preemphasis key in a platform
vendor dictated way instead of generic one
  • Loading branch information
jemifdo committed Jun 30, 2024
1 parent 470765e commit 582922f
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions sonic_platform_base/sfp_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -467,3 +467,22 @@ def get_xcvr_api(self):
if self._xcvr_api is None:
self.refresh_xcvr_api()
return self._xcvr_api

def get_platform_media_key(self, transceiver_dict, port_speed, lane_count):
"""
Retrieves the media key constructed in a platform specific way,
to be used for parsing the media settings
Args:
transceiver_dict :
SFP transceived EEPROM dictionary
port_speed:
Configured port speed
lane_count:
Number of lanes assigned for that port
Returns:
a dictionary with string values defined for keys,
{'vendor_key':'', 'media_key':'', 'lane_speed_key':'')
"""
raise NotImplementedError

0 comments on commit 582922f

Please sign in to comment.