Skip to content

Commit c11af80

Browse files
Add 1.6t support to sonic-xcvrd (#644)
* Add 1.6t support to sonic-xcvrd * Add test coverage to test_xcvrd.py
1 parent 2373020 commit c11af80

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

sonic-xcvrd/tests/test_xcvrd.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2434,6 +2434,8 @@ def get_application(lane):
24342434
assert task.is_cmis_application_update_required(mock_xcvr_api, app_new, host_lanes_mask) == expected
24352435

24362436
@pytest.mark.parametrize("ifname, expected", [
2437+
('1.6TBASE-CR8 (Clause179)', 1600000),
2438+
('1.6TAUI-8 (Annex176E)', 1600000),
24372439
('800G L C2M', 800000),
24382440
('400G CR8', 400000),
24392441
('200GBASE-CR4 (Clause 136)', 200000),

sonic-xcvrd/xcvrd/xcvrd.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,9 @@ def get_interface_speed(ifname):
173173
"""
174174
# see HOST_ELECTRICAL_INTERFACE of sff8024.py
175175
speed = 0
176-
if '800G' in ifname:
176+
if '1.6T' in ifname:
177+
speed = 1600000
178+
elif '800G' in ifname:
177179
speed = 800000
178180
elif '400G' in ifname:
179181
speed = 400000

0 commit comments

Comments
 (0)