Skip to content

Commit d4cec20

Browse files
stephenxsjleveque
authored andcommitted
readd type_abbrv_name in sonic_sfp/sff8436.py (sonic-net#44)
1 parent e5ed2ab commit d4cec20

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

sonic_sfp/sff8436.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
import types
1717
from math import log10
1818
from .sff8024 import type_of_transceiver # Dot module supports both Python 2 and Python 3 using explicit relative import methods
19+
from .sff8024 import type_abbrv_name # Dot module supports both Python 2 and Python 3 using explicit relative import methods
1920
from .sffbase import sffbase # Dot module supports both Python 2 and Python 3 using explicit relative import methods
2021
except ImportError as e:
2122
raise ImportError (str(e) + "- required module not found")
@@ -352,6 +353,11 @@ class sff8436InterfaceId(sffbase):
352353
'size':1,
353354
'type' : 'enum',
354355
'decode' : type_of_transceiver},
356+
'type_abbrv_name':
357+
{'offset':0,
358+
'size':1,
359+
'type' : 'enum',
360+
'decode' : type_abbrv_name},
355361
'Extended Identifier':
356362
{'offset':1,
357363
'size':1,

0 commit comments

Comments
 (0)