Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[action] [PR:476] Update additional PN for Innolight and Eoptolink (#476) #502

Merged
merged 1 commit into from
Sep 27, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion sonic_platform_base/sonic_xcvr/xcvr_api_factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@
VENDOR_PART_NUM_LENGTH = 16

CREDO_800G_AEC_VENDOR_PN_LIST = ["CAC81X321M2MC1MS", "CAC815321M2MC1MS", "CAC82X321M2MC1MS"]
INL_800G_VENDOR_PN_LIST = ["T-DL8CNT-NCI", "T-DH8CNT-NCI", "T-DH8CNT-N00", "T-DP4CNH-NCI"]
EOP_800G_VENDOR_PN_LIST = ["EOLD-168HG-02-41", "EOLD-138HG-02-41"]

class XcvrApiFactory(object):
def __init__(self, reader, writer):
Expand Down Expand Up @@ -81,7 +83,8 @@ def create_xcvr_api(self):
mem_map = CmisAec800gMemMap(CmisAec800gCodes)
xcvr_eeprom = XcvrEeprom(self.reader, self.writer, mem_map)
api = CmisAec800gApi(xcvr_eeprom)
elif vendor_name == 'CISCO-INNOLIGHT' and vendor_pn == 'T-DH8CNT-NCI':
elif ('INNOLIGHT' in vendor_name and vendor_pn in INL_800G_VENDOR_PN_LIST) or \
('EOPTOLINK' in vendor_name and vendor_pn in EOP_800G_VENDOR_PN_LIST):
codes = CmisCodes
mem_map = CmisMemMap(codes)
xcvr_eeprom = XcvrEeprom(self.reader, self.writer, mem_map)
Expand Down
Loading