From f8ce91f0b42ea3a8830de2c6f5ad209675f89931 Mon Sep 17 00:00:00 2001 From: Mihir Patel Date: Fri, 15 Nov 2024 00:00:40 +0000 Subject: [PATCH] Added description for get_transceiver_vdm_real_value --- sonic_platform_base/sonic_xcvr/api/xcvr_api.py | 3 ++- sonic_platform_base/sonic_xcvr/sfp_optoe_base.py | 4 ++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/sonic_platform_base/sonic_xcvr/api/xcvr_api.py b/sonic_platform_base/sonic_xcvr/api/xcvr_api.py index 81b62358c..f28c852cf 100644 --- a/sonic_platform_base/sonic_xcvr/api/xcvr_api.py +++ b/sonic_platform_base/sonic_xcvr/api/xcvr_api.py @@ -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 diff --git a/sonic_platform_base/sonic_xcvr/sfp_optoe_base.py b/sonic_platform_base/sonic_xcvr/sfp_optoe_base.py index 19b8ad7f0..e175b1167 100644 --- a/sonic_platform_base/sonic_xcvr/sfp_optoe_base.py +++ b/sonic_platform_base/sonic_xcvr/sfp_optoe_base.py @@ -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