Skip to content

Commit

Permalink
Adding supported vendor PNs for remote CDB FW upgrade (#418)
Browse files Browse the repository at this point in the history
  • Loading branch information
mihirpat1 authored and mssonicbld committed Dec 11, 2023
1 parent a07a03b commit 57f63e6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion sonic_platform_base/sonic_xcvr/xcvr_api_factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@
VENDOR_NAME_LENGTH = 16
VENDOR_PART_NUM_LENGTH = 16

CREDO_800G_AEC_VENDOR_PN_LIST = ["CAC81X321M2MC1MS", "CAC815321M2MC1MS", "CAC82X321M2MC1MS"]

class XcvrApiFactory(object):
def __init__(self, reader, writer):
self.reader = reader
Expand Down Expand Up @@ -72,7 +74,7 @@ def create_xcvr_api(self):
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':
if vendor_name == 'Credo' and vendor_pn in CREDO_800G_AEC_VENDOR_PN_LIST:
codes = CmisAec800gCodes
mem_map = CmisAec800gMemMap(CmisAec800gCodes)
xcvr_eeprom = XcvrEeprom(self.reader, self.writer, mem_map)
Expand Down

0 comments on commit 57f63e6

Please sign in to comment.