Skip to content

Commit 8e673d5

Browse files
authored
Update additional PN for Innolight and Eoptolink (#476)
1 parent 51c6207 commit 8e673d5

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

sonic_platform_base/sonic_xcvr/xcvr_api_factory.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@
3737
VENDOR_PART_NUM_LENGTH = 16
3838

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

4143
class XcvrApiFactory(object):
4244
def __init__(self, reader, writer):
@@ -81,7 +83,8 @@ def create_xcvr_api(self):
8183
mem_map = CmisAec800gMemMap(CmisAec800gCodes)
8284
xcvr_eeprom = XcvrEeprom(self.reader, self.writer, mem_map)
8385
api = CmisAec800gApi(xcvr_eeprom)
84-
elif vendor_name == 'CISCO-INNOLIGHT' and vendor_pn == 'T-DH8CNT-NCI':
86+
elif ('INNOLIGHT' in vendor_name and vendor_pn in INL_800G_VENDOR_PN_LIST) or \
87+
('EOPTOLINK' in vendor_name and vendor_pn in EOP_800G_VENDOR_PN_LIST):
8588
codes = CmisCodes
8689
mem_map = CmisMemMap(codes)
8790
xcvr_eeprom = XcvrEeprom(self.reader, self.writer, mem_map)

0 commit comments

Comments
 (0)