Skip to content

[202012] [Arista] Raise ValueError on thermal manager invalid fan speed#8903

Merged
vdahiya12 merged 1 commit intosonic-net:202012from
zzhiyuan:arista202012platformAPIfanfix
Oct 6, 2021
Merged

[202012] [Arista] Raise ValueError on thermal manager invalid fan speed#8903
vdahiya12 merged 1 commit intosonic-net:202012from
zzhiyuan:arista202012platformAPIfanfix

Conversation

@zzhiyuan
Copy link
Contributor

@zzhiyuan zzhiyuan commented Oct 5, 2021

Why I did it

Vaibhav Dahiya notified me that invalid fan speed policy was expecting an error raised in sonic-mgmt testing, but it was not raised.

How I did it

Add in the suggested code chunk to Arista platform submodule to raise ValueError when an invalid fan speed is set in thermal policy.

How to verify it

Vaibhav Dahiya has verified it through sonic-mgmt testing.

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

  • 201811
  • 201911
  • 202006
  • 202012
  • 202106

Description for the changelog

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

@vdahiya12 vdahiya12 self-requested a review October 5, 2021 18:57
@vdahiya12
Copy link
Contributor

LGTM

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.

2 participants