From b9b05c0b4527f9e9513ad5e719fd40517974754f Mon Sep 17 00:00:00 2001 From: Joe LeVeque Date: Tue, 9 Feb 2021 13:40:07 -0800 Subject: [PATCH] [sonic_sfp/qsfp_dd.py] Update DOM capability method name to align with other drivers (#163) Update method name to align with other drivers. Change from `parse_qsfp_dom_capability` to `parse_dom_capability`. Other drivers were aligned via https://github.com/Azure/sonic-mgmt/pull/2937. When this submodule is updated in sonic-buildimage, all callers will need to be updated to reflect the new nomenclature. --- sonic_platform_base/sonic_sfp/qsfp_dd.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sonic_platform_base/sonic_sfp/qsfp_dd.py b/sonic_platform_base/sonic_sfp/qsfp_dd.py index 97a748480..f2335e342 100644 --- a/sonic_platform_base/sonic_sfp/qsfp_dd.py +++ b/sonic_platform_base/sonic_sfp/qsfp_dd.py @@ -223,8 +223,8 @@ def parse_ext_iden(self, ext_iden_data, start_pos): def parse_cable_len(self, cable_len_data, start_pos): return sffbase.parse(self, self.cable_len, cable_len_data, start_pos) - def parse_qsfp_dom_capability(self, qsfp_dom_capability_raw_data, start_pos): - return sffbase.parse(self, self.qsfp_dd_dom_capability, qsfp_dom_capability_raw_data, start_pos) + def parse_dom_capability(self, dom_capability_raw_data, start_pos): + return sffbase.parse(self, self.qsfp_dd_dom_capability, dom_capability_raw_data, start_pos) def parse_media_type(self, qsfp_media_type_raw_data, start_pos): return self.decode_media_type(qsfp_media_type_raw_data, start_pos, 1)