Skip to content

Commit

Permalink
[xcvr] Add get_module_fw_info method to XcvrApi class. (sonic-net#267)
Browse files Browse the repository at this point in the history
Signed-off-by: Oleksandr Ivantsiv <oivantsiv@nvidia.com>
  • Loading branch information
oleksandrivantsiv committed Mar 10, 2022
1 parent 35bad16 commit a844f18
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions sonic_platform_base/sonic_xcvr/api/xcvr_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -448,3 +448,18 @@ def get_power_override_support(self):
A Boolean, True if power override is supported, False otherwise
"""
raise NotImplementedError

def get_module_fw_info(self):
"""
Retrieves the firmware information of this xcvr.
Returns:
A dict containing the following keys/values:
================================================================================
keys |Value Format |Information
---------------------------|---------------|----------------------------
status |bool |status of operation
info |string |human readable representation of firmware information
result |tuple |firmware information
"""
raise NotImplementedError

0 comments on commit a844f18

Please sign in to comment.