Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

readd type_abbrv_name in sonic_sfp/sff8436.py #44

Merged
merged 1 commit into from
Jul 18, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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