From a844f18a1968c42b9d4b5604b931386821dc4b0d Mon Sep 17 00:00:00 2001 From: Oleksandr Ivantsiv Date: Thu, 10 Mar 2022 08:37:45 +0200 Subject: [PATCH] [xcvr] Add get_module_fw_info method to XcvrApi class. (#267) Signed-off-by: Oleksandr Ivantsiv --- sonic_platform_base/sonic_xcvr/api/xcvr_api.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/sonic_platform_base/sonic_xcvr/api/xcvr_api.py b/sonic_platform_base/sonic_xcvr/api/xcvr_api.py index 76e7c20cfce5..3b21947cc98d 100644 --- a/sonic_platform_base/sonic_xcvr/api/xcvr_api.py +++ b/sonic_platform_base/sonic_xcvr/api/xcvr_api.py @@ -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