Skip to content

Commit

Permalink
[sonic_sfp/qsfp_dd.py] Update DOM capability method name to align wit…
Browse files Browse the repository at this point in the history
…h 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.
  • Loading branch information
jleveque committed Feb 9, 2021
1 parent 6ad0004 commit bd4dc03
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sonic_platform_base/sonic_sfp/qsfp_dd.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit bd4dc03

Please sign in to comment.