Skip to content

Commit a844f18

Browse files
[xcvr] Add get_module_fw_info method to XcvrApi class. (#267)
Signed-off-by: Oleksandr Ivantsiv <[email protected]>
1 parent 35bad16 commit a844f18

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

sonic_platform_base/sonic_xcvr/api/xcvr_api.py

+15
Original file line numberDiff line numberDiff line change
@@ -448,3 +448,18 @@ def get_power_override_support(self):
448448
A Boolean, True if power override is supported, False otherwise
449449
"""
450450
raise NotImplementedError
451+
452+
def get_module_fw_info(self):
453+
"""
454+
Retrieves the firmware information of this xcvr.
455+
456+
Returns:
457+
A dict containing the following keys/values:
458+
================================================================================
459+
keys |Value Format |Information
460+
---------------------------|---------------|----------------------------
461+
status |bool |status of operation
462+
info |string |human readable representation of firmware information
463+
result |tuple |firmware information
464+
"""
465+
raise NotImplementedError

0 commit comments

Comments
 (0)