Skip to content

[platform] Add new platform as4630-54npe #8220

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

Closed
wants to merge 29 commits into from

Conversation

seanwu-ec
Copy link
Contributor

@seanwu-ec seanwu-ec commented Jul 19, 2021

Why I did it

To support Accton's new model: AS4630-54NPE

How I did it

Part of this PR is restored from PR#6189. And the rest of the code is basically identical to AS4630-54PE's.

How to verify it

Built the image and tested it on DUT. The tests include some functional checks and going through some commands on the show program.

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

  • 201811
  • 201911
  • 202006
  • 202012
  • 202106

Description for the changelog

[Accton] add new platform AS4630-54NPE

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

unnamed

@lgtm-com
Copy link

lgtm-com bot commented Jul 19, 2021

This pull request introduces 61 alerts when merging 6c69d45 into c89b62e - view on LGTM.com

new alerts:

  • 41 for Unused import
  • 8 for Unused local variable
  • 6 for Use of 'global' at module level
  • 2 for Unreachable code
  • 2 for Variable defined multiple times
  • 1 for Except block handles 'BaseException'
  • 1 for Duplicate key in dict literal

@lgtm-com
Copy link

lgtm-com bot commented Jul 22, 2021

This pull request introduces 1 alert when merging 46b8e49 into c31c869 - view on LGTM.com

new alerts:

  • 1 for Unused import

@lgtm-com
Copy link

lgtm-com bot commented Jul 23, 2021

This pull request introduces 1 alert when merging daebd20 into 7698747 - view on LGTM.com

new alerts:

  • 1 for Wrong name for an argument in a call

@seanwu-ec
Copy link
Contributor Author

This pull request introduces 1 alert when merging daebd20 into 7698747 - view on LGTM.com

new alerts:

  • 1 for Wrong name for an argument in a call

I don't know how come LGTM has this alert. namedtuple DOES have 'defaults' argument, and it works.

  1. https://docs.python.org/3.7/library/collections.html#collections.namedtuple
  2. https://github.com/python/cpython/blob/041bfafeb00b0e5e565986b01c00bf9cddce3b4c/Lib/collections/__init__.py#L316

@lgtm-com
Copy link

lgtm-com bot commented Jul 26, 2021

This pull request introduces 1 alert when merging 4034b4c into 5e435e0 - view on LGTM.com

new alerts:

  • 1 for Wrong name for an argument in a call

@seanwu-ec seanwu-ec marked this pull request as ready for review July 26, 2021 08:08
@seanwu-ec
Copy link
Contributor Author

/azpw run

@mssonicbld
Copy link
Collaborator

/AzurePipelines run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@lgtm-com
Copy link

lgtm-com bot commented Aug 2, 2021

This pull request introduces 1 alert when merging 8cec9bc into 5259af2 - view on LGTM.com

new alerts:

  • 1 for Wrong name for an argument in a call

@seanwu-ec
Copy link
Contributor Author

Hi @lguohan , hi @jleveque , would you mind give me a hint about how to get my PRs reviewed and merged? Anything would do. Thanks.

@lgtm-com
Copy link

lgtm-com bot commented Oct 13, 2021

This pull request introduces 1 alert when merging e067483 into e8adee2 - view on LGTM.com

new alerts:

  • 1 for Wrong name for an argument in a call

@lgtm-com
Copy link

lgtm-com bot commented Dec 13, 2021

This pull request introduces 1 alert when merging 84227ae into 6402a02 - view on LGTM.com

new alerts:

  • 1 for Wrong name for an argument in a call

@seanwu-ec
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).

@lgtm-com
Copy link

lgtm-com bot commented Jan 18, 2022

This pull request introduces 1 alert when merging dee8c3721283668fb512971be53f3ae1299b6a96 into c80dabd - view on LGTM.com

new alerts:

  • 1 for Wrong name for an argument in a call

@prgeor prgeor self-assigned this Jan 18, 2022
@prgeor
Copy link
Contributor

prgeor commented Jan 18, 2022

This pull request introduces 1 alert when merging dee8c37 into c80dabd - view on LGTM.com

new alerts:

  • 1 for Wrong name for an argument in a call

@seanwu-ec new LGTM warnings

@seanwu-ec
Copy link
Contributor Author

This pull request introduces 1 alert when merging dee8c37 into c80dabd - view on LGTM.com
new alerts:

  • 1 for Wrong name for an argument in a call

@seanwu-ec new LGTM warnings

Hi @prgeor,
Thanks for your review.
As I commented above, I don't know how come LGTM has this alert.
namedtuple DOES have 'defaults' argument, and it works. The same goes for Python3.9.

Plz check:
https://docs.python.org/3.7/library/collections.html#collections.namedtuple
https://github.com/python/cpython/blob/041bfafeb00b0e5e565986b01c00bf9cddce3b4c/Lib/collections/__init__.py#L316
Thanks.

@seanwu-ec seanwu-ec marked this pull request as draft January 19, 2022 02:04
@seanwu-ec seanwu-ec marked this pull request as ready for review January 19, 2022 08:35
@seanwu-ec
Copy link
Contributor Author

Hi @prgeor,
You just remind me that Accton has decided to keep that 6-levels thermal threshold APIs ONLY to Accton's customized SONiC instead of messing up community SONiC code. I've removed the use of namedtuple there and the corresponding LGTM alert is gone. Thanks.

@prgeor
Copy link
Contributor

prgeor commented Jan 24, 2022

/azp run

seanwu-ec and others added 26 commits May 5, 2022 15:54
Signed-off-by: Sean Wu <[email protected]>
Signed-off-by: Sean Wu <[email protected]>
- This reverts commit 9da4c9e.
- We still need these scripts for some utils on 202012br, such likes
  decode-syseeprom.
- fix python2-styled print
- fix illegal use of chr()
- remove assigning no_buffer while open sysfs node.

Signed-off-by: Sean Wu <[email protected]>
* correct the wait and timeout mechanism for better CPU usage.
* Fix is_host() API might make OS stuck

Signed-off-by: Sean Wu <[email protected]>
* This reverts commit daebd20.
  This reverts commit 84227ae.

* Accton came to a conclusion that only keeps 6-levels thresholds APIs
to Accton's customized SONiC instead of messing up the community SONiC
code.

Signed-off-by: Sean Wu <[email protected]>
* This solve flooding DMAR err msg: "handling fault status reg 2"

Signed-off-by: Sean Wu <[email protected]>
@ec-michael-shih ec-michael-shih force-pushed the add_as4630-54npe_api2 branch from 0832308 to d06be47 Compare May 5, 2022 08:05
@seanwu-ec seanwu-ec requested a review from a team as a code owner June 10, 2022 02:01
@seanwu-ec
Copy link
Contributor Author

Close this due to there is a new one for the latest master code-base.
#14293

@seanwu-ec seanwu-ec closed this May 16, 2023
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.

7 participants