Skip to content

Commit

Permalink
Fix exception occurred during decode vendor name and pn (sonic-net#406)
Browse files Browse the repository at this point in the history
  • Loading branch information
AnoopKamath authored Oct 11, 2023
1 parent d382ec8 commit 76a8590
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sonic_platform_base/sonic_xcvr/xcvr_api_factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,10 @@ def _get_vendor_part_num(self):
def create_xcvr_api(self):
# TODO: load correct classes from id_mapping file
id = self._get_id()
vendor_name = self._get_vendor_name()
vendor_pn = self._get_vendor_part_num()
# QSFP-DD or OSFP
if id == 0x18 or id == 0x19 or id == 0x1e:
vendor_name = self._get_vendor_name()
vendor_pn = self._get_vendor_part_num()
if vendor_name == 'Credo' and vendor_pn == 'CAC81X321M2MC1MS':
codes = CmisAec800gCodes
mem_map = CmisAec800gMemMap(CmisAec800gCodes)
Expand Down

0 comments on commit 76a8590

Please sign in to comment.