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

Add ZR module support and apply new buffer setting for Wistron 3200K #12697

Open
wants to merge 3 commits into
base: 202111
Choose a base branch
from

Conversation

RogerX87
Copy link
Contributor

Why I did it

To support ZR modules setting and apply new buffer setting

How I did it

Apply the code

How to verify it

call the python api and check the value in transceiver eeprom

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

  • 201811
  • 201911
  • 202006
  • 202012
  • 202106
  • 202111
  • 202205

Description for the changelog

Ensure to add label/tag for the feature raised. example - PR#2174 under sonic-utilities repo. where, Generic Config and Update feature has been labelled as GCU.

Link to config_db schema for YANG module changes

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

@RogerX87 RogerX87 requested a review from lguohan as a code owner November 14, 2022 06:10
if not commands:
try:
starter_command, *commands = starter_command.split('|')
except AttributeError:

Check notice

Code scanning / CodeQL

Empty except

'except' clause does nothing but pass and there is no explanatory comment.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@RogerX87 can you check this code scan

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For this try-exception case, it just handle the "commands" not exist but which is not our case. We have sub-commands in our case.
So we just keep it pass.

We only have one case which separate original command to 3 sub-commands. This check case is handle the command with "|" like "ipmitool mc info | grep 'Firmware Revision' | awk '{printf $4}'".

@@ -70,7 +70,7 @@
for file in dirs:
if file.startswith("hwmon"):
return file
except BaseException:
except IOError:

Check notice

Code scanning / CodeQL

Empty except

'except' clause does nothing but pass and there is no explanatory comment.
else:
return None

def write_eeprom(self, offset, num_bytes, write_buffer):

Check notice

Code scanning / CodeQL

Explicit returns mixed with implicit (fall through) returns

Mixing implicit and explicit returns may indicate an error as implicit returns always return None.
@lgtm-com
Copy link

lgtm-com bot commented Nov 14, 2022

This pull request fixes 1 alert when merging 0e93a5f into 66b6c21 - view on LGTM.com

fixed alerts:

  • 1 for Except block handles 'BaseException'

@lgtm-com
Copy link

lgtm-com bot commented Nov 15, 2022

This pull request fixes 1 alert when merging ef5a8a1 into 66b6c21 - view on LGTM.com

fixed alerts:

  • 1 for Except block handles 'BaseException'

Heads-up: LGTM.com's PR analysis will be disabled on the 5th of December, and LGTM.com will be shut down ⏻ completely on the 16th of December 2022. Please enable GitHub code scanning, which uses the same CodeQL engine ⚙️ that powers LGTM.com. For more information, please check out our post on the GitHub blog.

@WistronNetwork
Copy link
Contributor

@lguohan , please help review, thanks.

@RogerX87
Copy link
Contributor Author

/azpw run Azure.sonic-buildimage

@mssonicbld
Copy link
Collaborator

/AzurePipelines run Azure.sonic-buildimage

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@RogerX87
Copy link
Contributor Author

/azpw run Azure.sonic-buildimage

@mssonicbld
Copy link
Collaborator

/AzurePipelines run Azure.sonic-buildimage

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@RogerX87
Copy link
Contributor Author

/azpw run Azure.sonic-buildimage

@mssonicbld
Copy link
Collaborator

/AzurePipelines run Azure.sonic-buildimage

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@RogerX87
Copy link
Contributor Author

/azpw run Azure.sonic-buildimage

@mssonicbld
Copy link
Collaborator

/AzurePipelines run Azure.sonic-buildimage

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@RogerX87
Copy link
Contributor Author

/AzurePipelines run Azure.sonic-buildimage

@azure-pipelines
Copy link

Commenter does not have sufficient privileges for PR 12697 in repo sonic-net/sonic-buildimage

@WistronNetwork
Copy link
Contributor

@lguohan shall we get this PR merged? thanks.

@RogerX87
Copy link
Contributor Author

/azpw run Azure.sonic-buildimage

@mssonicbld
Copy link
Collaborator

/AzurePipelines run Azure.sonic-buildimage

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@RogerX87
Copy link
Contributor Author

RogerX87 commented Jul 6, 2023

/azpw run Azure.sonic-buildimage

@mssonicbld
Copy link
Collaborator

/AzurePipelines run Azure.sonic-buildimage

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants