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

Fixed parser logic to handle non mandatory TLV. #110

Merged

Conversation

nazarii-gnydyn
Copy link

Summary:
Fixed parser logic to handle non mandatory TLV.

From WIKI:
Each LLDP frame starts with the following mandatory TLVs: Chassis ID, Port ID, and Time-to-Live.
The mandatory TLVs are followed by any number of optional TLVs. The frame ends with a special TLV,
named end of LLDPDU in which both the type and length fields are 0.

Log:
admin@sonic:~$ show lldp table
'NoneType' object has no attribute 'text'

@stcheng stcheng merged commit 635735d into sonic-net:master Oct 5, 2017
@nazarii-gnydyn nazarii-gnydyn deleted the master-lldpshow-parser-fix branch December 19, 2017 16:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants