forked from sonic-net/sonic-platform-common
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsff8024.py
66 lines (63 loc) · 1.66 KB
/
sff8024.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
#! /usr/bin/env python
#----------------------------------------------------------------------------
# SFF-8024 Rev 4.5
#----------------------------------------------------------------------------
from __future__ import print_function
type_of_transceiver = {
'00': 'Unknown or unspecified',
'01': 'GBIC',
'02': 'Module/connector soldered to motherboard',
'03': 'SFP/SFP+/SFP28',
'04': '300 pin XBI',
'05': 'XENPAK',
'06': 'XFP',
'07': 'XFF',
'08': 'XFP-E',
'09': 'XPAK',
'0a': 'X2',
'0b': 'DWDM-SFP/SFP+',
'0c': 'QSFP',
'0d': 'QSFP+ or later',
'0e': 'CXP or later',
'0f': 'Shielded Mini Multilane HD 4X',
'10': 'Shielded Mini Multilane HD 8X',
'11': 'QSFP28 or later',
'12': 'CXP2 (aka CXP28) or later',
'13': 'CDFP (Style 1/Style2)',
'14': 'Shielded Mini Multilane HD 4X Fanout Cable',
'15': 'Shielded Mini Multilane HD 8X Fanout Cable',
'16': 'CDFP (Style 3)',
'17': 'microQSFP',
'18': 'QSFP-DD Double Density 8X Pluggable Transceiver',
'19': 'OSFP 8X Pluggable Transceiver',
'1a': 'SFP-DD Double Density 2X Pluggable Transceiver'
}
type_abbrv_name = {
'00': 'Unknown',
'01': 'GBIC',
'02': 'Soldered',
'03': 'SFP',
'04': 'XBI300',
'05': 'XENPAK',
'06': 'XFP',
'07': 'XFF',
'08': 'XFP-E',
'09': 'XPAK',
'0a': 'X2',
'0b': 'DWDM-SFP',
'0c': 'QSFP',
'0d': 'QSFP+',
'0e': 'CXP',
'0f': 'HD4X',
'10': 'HD8X',
'11': 'QSFP28',
'12': 'CXP2',
'13': 'CDFP-1/2',
'14': 'HD4X-Fanout',
'15': 'HD8X-Fanout',
'16': 'CDFP-3',
'17': 'MicroQSFP',
'18': 'QSFP-DD',
'19': 'OSFP-8X',
'1a': 'SFP-DD'
}