Skip to content

DellEMC: S5232, Z9264, Z9332 - Platform API fixes#6842

Merged
jleveque merged 1 commit intosonic-net:masterfrom
ArunSaravananBalachandran:BMC_platform_api
Feb 24, 2021
Merged

DellEMC: S5232, Z9264, Z9332 - Platform API fixes#6842
jleveque merged 1 commit intosonic-net:masterfrom
ArunSaravananBalachandran:BMC_platform_api

Conversation

@ArunSaravananBalachandran
Copy link
Contributor

@ArunSaravananBalachandran ArunSaravananBalachandran commented Feb 22, 2021

Why I did it

To incorporate the below changes in DellEMC S5232, Z9264, Z9332 platforms.

  • Update thermal high threshold values
  • Make watchdog API Python2 and Python3 compatible
  • Fix LGTM alerts
  • Z9264: Fix get_change_event timer value

How I did it

  • Use 'universal_newlines=True' in subprocess.Popen call.
  • Change the timeout in 'get_change_event' to milliseconds to match specification in sonic_platform_common/chassis_base.py

How to verify it

Wrote a python script to load Chassis class and then call the APIs accordingly and verify the return type.
UT_logs.txt

Which release branch to backport (provide reason below if selected)

  • 201811
  • 201911
  • 202006
  • 202012

Description for the changelog

DellEMC: S5232, Z9264, Z9332 - Platform API fixes

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

    - Update thermal high threshold values
    - Make watchdog API Python2 and Python3 compatible
    - Fix LGTM alerts
    - Z9264: Fix get_change_event timer value
@lgtm-com
Copy link

lgtm-com bot commented Feb 22, 2021

This pull request fixes 17 alerts when merging ea987b1 into d5238ae - view on LGTM.com

fixed alerts:

  • 8 for Unused import
  • 3 for Except block handles 'BaseException'
  • 2 for Unused local variable
  • 2 for Unreachable code
  • 2 for Variable defined multiple times

@jleveque jleveque merged commit 142d93b into sonic-net:master Feb 24, 2021
yxieca pushed a commit that referenced this pull request Mar 4, 2021
#### Why I did it

To incorporate the below changes in DellEMC S5232, Z9264, Z9332 platforms.

- Update thermal high threshold values
- Make watchdog API Python2 and Python3 compatible
- Fix LGTM alerts
- Z9264: Fix get_change_event timer value

#### How I did it

- Use 'universal_newlines=True' in subprocess.Popen call.
- Change the timeout in 'get_change_event' to milliseconds to match specification in sonic_platform_common/chassis_base.py
carl-nokia pushed a commit to carl-nokia/sonic-buildimage that referenced this pull request Aug 7, 2021
#### Why I did it

To incorporate the below changes in DellEMC S5232, Z9264, Z9332 platforms.

- Update thermal high threshold values
- Make watchdog API Python2 and Python3 compatible
- Fix LGTM alerts
- Z9264: Fix get_change_event timer value

#### How I did it

- Use 'universal_newlines=True' in subprocess.Popen call.
- Change the timeout in 'get_change_event' to milliseconds to match specification in sonic_platform_common/chassis_base.py
@ArunSaravananBalachandran ArunSaravananBalachandran deleted the BMC_platform_api branch August 24, 2021 05:56
lolyu pushed a commit to lolyu/sonic-buildimage that referenced this pull request Sep 13, 2021
#### Why I did it

To incorporate the below changes in DellEMC S5232, Z9264, Z9332 platforms.

- Update thermal high threshold values
- Make watchdog API Python2 and Python3 compatible
- Fix LGTM alerts
- Z9264: Fix get_change_event timer value

#### How I did it

- Use 'universal_newlines=True' in subprocess.Popen call.
- Change the timeout in 'get_change_event' to milliseconds to match specification in sonic_platform_common/chassis_base.py
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.

3 participants