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

[Credo][Ycable] enhancement and error exception for some APIs #303

Merged
merged 11 commits into from
Sep 17, 2022

Conversation

xinyulin
Copy link
Contributor

Description

  • fix the switch_count_tor_a() will always clear the counter after read issue.
  • use YCable.EEPROM_ERROR due to the definition was moved.
  • check and activate firmware by the inactive firmware version individually.
  • add more error exception for activate_firmware()

Motivation and Context

How Has This Been Tested?

Additional Information (Optional)

@lgtm-com
Copy link

lgtm-com bot commented Aug 19, 2022

This pull request introduces 3 alerts when merging 4eed20b into 030a382 - view on LGTM.com

new alerts:

  • 3 for Testing equality to None

…herwise the manual switch count will be reset after each calling of get_switch_count_tor_a()

Signed-off-by: Xinyu <[email protected]>
…g due to the variable EEPROM_ERROR was moved to YCable class

Signed-off-by: Xinyu <[email protected]>
…align the fw version with the input fw file

Signed-off-by: Xinyu <[email protected]>
@lgtm-com
Copy link

lgtm-com bot commented Aug 26, 2022

This pull request introduces 1 alert when merging ef98304 into 211d6bc - view on LGTM.com

new alerts:

  • 1 for Unused local variable

@lgtm-com
Copy link

lgtm-com bot commented Aug 31, 2022

This pull request introduces 1 alert when merging 9da1144 into 211d6bc - view on LGTM.com

new alerts:

  • 1 for Unused local variable

@vdahiya12 vdahiya12 self-requested a review September 16, 2022 20:32
@vdahiya12 vdahiya12 merged commit 208fe2f into sonic-net:master Sep 17, 2022
qiluo-msft pushed a commit that referenced this pull request Sep 17, 2022
Description
fix the switch_count_tor_a() will always clear the counter after read issue.
use YCable.EEPROM_ERROR due to the definition was moved.
check and activate firmware by the inactive firmware version individually.
add more error exception for activate_firmware()
authored-by evan-lin [email protected]

Signed-off-by: vaibhav-dahiya [email protected]
@xinyulin xinyulin deleted the credo_fix branch April 17, 2023 02:07
yxieca pushed a commit that referenced this pull request Aug 10, 2023
Description
fix the switch_count_tor_a() will always clear the counter after read issue.
use YCable.EEPROM_ERROR due to the definition was moved.
check and activate firmware by the inactive firmware version individually.
add more error exception for activate_firmware()
authored-by evan-lin [email protected]

Signed-off-by: vaibhav-dahiya [email protected]
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.

4 participants