-
Notifications
You must be signed in to change notification settings - Fork 176
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
Fix EEPROM vendor extension TLV number counting issue #70
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
merge from upstream master
merge from upstream
jleveque
approved these changes
Dec 7, 2019
@jleveque would you please help to label this fix for bmtor and 201911 branch? |
@keboliu: We have not yet created either of those branches in this repo. |
lguohan
pushed a commit
to sonic-net/sonic-buildimage
that referenced
this pull request
Dec 11, 2019
sonic-net/sonic-platform-common#71 [Bug fix] fix a syntax error which was introduced by last commit sonic-net/sonic-platform-common#70 Fix EEPROM vendor extension TLV number counting issue sonic-net/sonic-platform-common#62 Platform Driver Development Framework (PDDF): 1) Changes to psu base class (1.0 APIs) to support PDDF CLI utils, 2) Adding fan_base class to support PDDF fan CLI utils (comments incorporated) sonic-net/sonic-platform-common#68 DeviceBase.get_name should raise NotImplementedError like other member
abdosi
pushed a commit
that referenced
this pull request
Jan 3, 2020
oleksandrivantsiv
pushed a commit
to oleksandrivantsiv/sonic-platform-common
that referenced
this pull request
Oct 25, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
TlvInfoDecoder class is using a member variable _TLV_NUM_VENDOR_EXT to counting the vendor extension TLV numbers in the system EEPROM, each time function update_eeprom_db be called, _TLV_NUM_VENDOR_EXT will be accumulated, which will cause EEPROM extension TLV number not correct after an update.
The fix is to replace this member variable with a local variable in the function update_eeprom_db, the local variable is set to 0 before start to count the TLV, this will eliminate this issue
revised formatting by adding extra blank lines to align with PEP8