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

[Mellanox]Resolve chassis broken due to inconsistent with latest sonic_platform_common #3569

Merged
merged 8 commits into from
Oct 9, 2019

Conversation

stephenxs
Copy link
Collaborator

- What I did
Resolve chassis broken by supporting the latest component API (get_firmware_version)
Currently get_firmware_version implemented by using chassis.get_firmware_version and chassis._component_name_list which are not supported in the latest sonic_platform_common, causing chassis broken.
Update this part so that it aligns to the latest sonic_platform_common

- How I did it
Originally get_firmware_version is a member function of chassis but recently it is moved to component.py. In this case, mlnx-platform-api should be updated accordingly otherwise chassis is broken.

- How to verify it
test

  • whether firmware versions can be fetch
  • whether chassis can be loaded successfully

- Description for the changelog

- A picture of a cute animal (not mandatory but encouraged)

Stephen Sun added 8 commits September 30, 2019 11:47
Currently get_firmware_version implementated by using chassis.get_firmware_version and chassis._component_name_list which are not supported in the latest sonic_platform_common, causing chassis broken.
Update this part so that it aligns to the latest sonic_platform_common
Support component API
1. rename initialize_components
2. replace cpld?_version with cpld[0-9]_version in order to be more accurate
1. implement file reading by with statment
2. adjust statement which testing whether list is empty
@jleveque jleveque merged commit 576f098 into sonic-net:master Oct 9, 2019
@stephenxs stephenxs deleted the update_firmware_version branch October 10, 2019 00:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants