Skip to content

Commit

Permalink
Added description for get_transceiver_vdm_real_value
Browse files Browse the repository at this point in the history
  • Loading branch information
mihirpat1 committed Nov 15, 2024
1 parent 3889a8e commit f8ce91f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sonic_platform_base/sonic_xcvr/api/xcvr_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,8 @@ def get_transceiver_status_flags(self):

def get_transceiver_vdm_real_value(self):
"""
Retrieves VDM real value for this xcvr (applicable for CMIS and C-CMIS)
Retrieves VDM real (sample) values for this xcvr (applicable for CMIS and C-CMIS)
Specifically, it retrieves sample data from pages 24h to 27h
"""
raise NotImplementedError

Expand Down
4 changes: 4 additions & 0 deletions sonic_platform_base/sonic_xcvr/sfp_optoe_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,10 @@ def is_coherent_module(self):
return api.is_coherent_module() if api is not None else None

def get_transceiver_vdm_real_value(self):
"""
Retrieves VDM real (sample) values for this xcvr (applicable for CMIS and C-CMIS)
Specifically, it retrieves sample data from pages 24h to 27h
"""
api = self.get_xcvr_api()
return api.get_transceiver_vdm_real_value() if api is not None else None

Expand Down

0 comments on commit f8ce91f

Please sign in to comment.