-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
[Edgecore][AS5812-54x]Support API2.0 #11905
Open
jostar-yang
wants to merge
13
commits into
sonic-net:master
Choose a base branch
from
jostar-yang:as5812-54x_20220831_api2
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
[Edgecore][AS5812-54x]Support API2.0 #11905
jostar-yang
wants to merge
13
commits into
sonic-net:master
from
jostar-yang:as5812-54x_20220831_api2
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Signed-off-by: jostar-yang <jostar_yang@edge-core.com>
7 tasks
/AzurePipelines run Azure.sonic-buildimage |
Azure Pipelines successfully started running 1 pipeline(s). |
This pull request introduces 1 alert when merging 000d19f into 95f4af3 - view on LGTM.com new alerts:
|
jostar-yang
changed the title
[Edge-core][AS5812-54x]Support API2.0
[Edgecore][AS5812-54x]Support API2.0
Nov 24, 2022
/azpw run |
/AzurePipelines run |
You have several pipelines (over 10) configured to build pull requests in this repository. Specify which pipelines you would like to run by using /azp run [pipelines] command. You can specify multiple pipelines using a comma separated list. |
7 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Signed-off-by: jostar-yang jostar_yang@edge-core.com
Why I did it
Support new platform api for API2.0
How I did it
Implement needed code.
How to verify it
Test show platform cmd.
root@sonic:/home/admin# show platform psustatus
PSU Model Serial HW Rev Voltage (V) Current (A) Power (W) Status LED
PSU 1 CPR-4011-4M11 N/A 0.00 0.00 0.00 NOT OK red
PSU 2 CPR-4011-4M11 4011411H35T0411 N/A 12.00 6.25 75.00 OK green
root@sonic:/home/admin#
root@sonic:/home/admin# show platform psustatus
PSU Model Serial HW Rev Voltage (V) Current (A) Power (W) Status LED
PSU 1 CPR-4011-4M11 N/A 0.00 0.00 0.00 NOT OK red
PSU 2 CPR-4011-4M11 4011411H35T0411 N/A 12.00 6.19 74.00 OK green
root@sonic:/home/admin#
root@sonic:/home/admin# show platform temp
Sensor Temperature High TH Low TH Crit High TH Crit Low TH Warning Timestamp
PSU-1 temp sensor 1 0 80 N/A N/A N/A False 20220811 09:44:28
PSU-2 temp sensor 1 30 80 N/A N/A N/A False 20220811 09:44:28
Temp sensor 1 25.5 80 N/A N/A N/A False 20220811 09:44:28
Temp sensor 2 23.5 80 N/A N/A N/A False 20220811 09:44:28
Temp sensor 3 22 80 N/A N/A N/A False 20220811 09:44:28
Which release branch to backport (provide reason below if selected)
--> Customer need this patch.
--> Customer need this patch.
Description for the changelog
Link to config_db schema for YANG module changes
A picture of a cute animal (not mandatory but encouraged)