From 6a65537877005570eb89b849ab99c56bb14a8b35 Mon Sep 17 00:00:00 2001 From: Oleksandr Ivantsiv Date: Mon, 7 Mar 2022 18:43:24 +0000 Subject: [PATCH] [xcvr] Add get_module_fw_info method to XcvrApi class. 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 76e7c20cf..3b21947cc 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