Skip to content

Commit 1ccb062

Browse files
Adding 800G-ZR codes and ability to check 150GHz grid spacing (#601)
* Adding 800G-ZR codes and ability to check 150GHz grid spacing * Add test case for 150 GHz grid
1 parent 47be7af commit 1ccb062

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

sonic_platform_base/sonic_xcvr/api/public/c_cmis.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,9 @@ def get_freq_grid(self):
9696
This function returns the configured frequency grid. Unit in GHz
9797
'''
9898
freq_grid = self.xcvr_eeprom.read(consts.GRID_SPACING)
99-
if freq_grid == 7:
99+
if freq_grid == 8:
100+
return 150
101+
elif freq_grid == 7:
100102
return 75
101103
elif freq_grid == 6:
102104
return 33

sonic_platform_base/sonic_xcvr/codes/public/sff8024.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -398,6 +398,9 @@ class Sff8024(XcvrCodes):
398398
85: '400GBASE-DR4-2 (placeholder)',
399399
86: '800GBASE-DR8 (placeholder)',
400400
87: '800GBASE-DR8-2 (placeholder)',
401+
108: '800ZR-A (0x01) 150 GHz DWDM',
402+
109: '800ZR-B (0x02) 150 GHz DWDM',
403+
110: '800ZR-C (0x03) 150 GHz DWDM',
401404
115: '200GBASE-DR1 (Clause 180)',
402405
116: '200GBASE-DR1-2 (Clause 181)',
403406
117: '400GBASE-DR2 (Clause 180)',

tests/sonic_xcvr/test_ccmis.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ class TestCCmis(object):
2323
api = CCmisApi(eeprom, cdb)
2424

2525
@pytest.mark.parametrize("mock_response, expected", [
26+
(8, 150),
2627
(7, 75),
2728
(6, 33),
2829
(5, 100),

0 commit comments

Comments
 (0)