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] Modified SKU based utils to Platform based utils #4786

Merged
merged 1 commit into from
Jun 21, 2020

Conversation

madhanmellanox
Copy link
Contributor

  • What I did
    I moved all the SKU based variables (dictionaries), functions to Platform based variables and functions in scripts like sfputil.py, chassis.py, psu.py, fan.py and thermal.py

  • How I did it
    I eliminated almost all the references of SKU based dictionaries and functions from these files and instead used Platform based dictionaries and functions.

  • How to verify it
    Used the following commands to verify my changes are working:
    sudo sfputil show presence
    show platform psustatus
    show interface transceiver eeprom Ethernet0
    show platform temperature

  • Description for the changelog

The changes are only in files sfputil.py, chassis.py, fan.py, psu.py and thermal.py and the changes are conversion of dictionaries and functions from SKU based to Platform based.

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

@keboliu
Copy link
Collaborator

keboliu commented Jun 19, 2020

retest vsimage please

@madhanmellanox madhanmellanox changed the title Modified SKU based utils to Platform based utils [Mellanox] Modified SKU based utils to Platform based utils Jun 19, 2020
@madhanmellanox
Copy link
Contributor Author

retest vsimage please

1 similar comment
@prsunny
Copy link
Contributor

prsunny commented Jun 19, 2020

retest vsimage please

@madhanmellanox
Copy link
Contributor Author

retest vsimage please

1 similar comment
@madhanmellanox
Copy link
Contributor Author

retest vsimage please

@prsunny prsunny merged commit 2c830f4 into sonic-net:master Jun 21, 2020
@abdosi
Copy link
Contributor

abdosi commented Jun 23, 2020

@madhanmellanox please create pr for 201911. cherry-pick has conflict.

@prsunny @rlhui

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