Skip to content

Commit 96562f8

Browse files
committed
Fix build
1 parent 7b787dd commit 96562f8

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

sonic_platform_base/sonic_xcvr/api/amphenol/backplane.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def get_slot_id(self):
4141
"""
4242
Get the slot id
4343
"""
44-
slot = self.xcvr_eeprom.read(consts.CATRDIGE_SLOT_ID)
44+
slot = self.xcvr_eeprom.read(consts.CARTRDIGE_SLOT_ID)
4545
if slot is None:
4646
return "N/A"
4747
return slot

sonic_platform_base/sonic_xcvr/codes/amphenol/backplane.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from ..public.sff8024 import Sff8024
22

33
class AmphBackplaneCodes(Sff8024):
4-
CATRDIGE_SLOT_ID = {
4+
CARTRDIGE_SLOT_ID = {
55
0x1 : "1",
66
0x2 : "2",
77
0x3 : "3",

sonic_platform_base/sonic_xcvr/mem_maps/amphenol/backplane.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@ def __init__(self, codes):
1515
super(AmphBackplaneMemMap, self).__init__(codes)
1616

1717
self.SLOT_ID = CodeRegField(consts.CARTRDIGE_SLOT_ID, self.getaddr(0x0, 203),
18-
self.codes.CATRDIGE_SLOT_ID)
18+
self.codes.CARTRDIGE_SLOT_ID)

tests/sonic_xcvr/test_xcvr_api_factory.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ def test_get_slot_id(self, amph_backplane):
116116
assert slot_id == "NA"
117117

118118
# Verify the read method was called with the correct constant
119-
amph_backplane.xcvr_eeprom.read.assert_called_with(consts.CATRDIGE_SLOT_ID)
119+
amph_backplane.xcvr_eeprom.read.assert_called_with(consts.CARTRDIGE_SLOT_ID)
120120

121121
def test_get_transceiver_info(self, amph_backplane):
122122
"""

0 commit comments

Comments
 (0)