Skip to content

Commit

Permalink
readd type_abbrv_name in sonic_sfp/sff8436.py (sonic-net#44)
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenxs authored and jleveque committed Jul 18, 2019
1 parent e5ed2ab commit d4cec20
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions sonic_sfp/sff8436.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
import types
from math import log10
from .sff8024 import type_of_transceiver # Dot module supports both Python 2 and Python 3 using explicit relative import methods
from .sff8024 import type_abbrv_name # Dot module supports both Python 2 and Python 3 using explicit relative import methods
from .sffbase import sffbase # Dot module supports both Python 2 and Python 3 using explicit relative import methods
except ImportError as e:
raise ImportError (str(e) + "- required module not found")
Expand Down Expand Up @@ -352,6 +353,11 @@ class sff8436InterfaceId(sffbase):
'size':1,
'type' : 'enum',
'decode' : type_of_transceiver},
'type_abbrv_name':
{'offset':0,
'size':1,
'type' : 'enum',
'decode' : type_abbrv_name},
'Extended Identifier':
{'offset':1,
'size':1,
Expand Down

0 comments on commit d4cec20

Please sign in to comment.