Skip to content

Commit bd4dc03

Browse files
committed
[sonic_sfp/qsfp_dd.py] Update DOM capability method name to align with other drivers (sonic-net#163)
Update method name to align with other drivers. Change from `parse_qsfp_dom_capability` to `parse_dom_capability`. Other drivers were aligned via sonic-net/sonic-mgmt#2937. When this submodule is updated in sonic-buildimage, all callers will need to be updated to reflect the new nomenclature.
1 parent 6ad0004 commit bd4dc03

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sonic_platform_base/sonic_sfp/qsfp_dd.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -223,8 +223,8 @@ def parse_ext_iden(self, ext_iden_data, start_pos):
223223
def parse_cable_len(self, cable_len_data, start_pos):
224224
return sffbase.parse(self, self.cable_len, cable_len_data, start_pos)
225225

226-
def parse_qsfp_dom_capability(self, qsfp_dom_capability_raw_data, start_pos):
227-
return sffbase.parse(self, self.qsfp_dd_dom_capability, qsfp_dom_capability_raw_data, start_pos)
226+
def parse_dom_capability(self, dom_capability_raw_data, start_pos):
227+
return sffbase.parse(self, self.qsfp_dd_dom_capability, dom_capability_raw_data, start_pos)
228228

229229
def parse_media_type(self, qsfp_media_type_raw_data, start_pos):
230230
return self.decode_media_type(qsfp_media_type_raw_data, start_pos, 1)

0 commit comments

Comments
 (0)