Repository navigation
Conversation
|
Azure Pipelines: There may be pipelines that require an authorized user to comment /azp run to run. |
Collaborator
|
/azp run |
|
Azure Pipelines: Successfully started running 1 pipeline(s). |
Collaborator
|
/azp run |
|
Azure Pipelines: Successfully started running 1 pipeline(s). |
The change follows the existing procedure of ASIC temperature polling Signed-off-by: Boyang Yu <byu@arista.com>
byu343
force-pushed
the
gearbox-sensors
branch
from
October 5, 2026 17:41
3ba9c62 to
06ebc91
Compare
Collaborator
|
/azp run |
|
Azure Pipelines: Successfully started running 1 pipeline(s). |
This file contains hidden or 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
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.
Description of PR
Summary: Support gearbox temperature sensor polling
Fixes # (issue)
Type of change
Approach
What is the motivation for this PR?
This change will support polling the gearbox temperature sensors using PAI API.
How did you do it?
The change follows the existing procedure of ASIC temperature polling. With certain refactoring, the temperature polling for ASIC and gearbox share some code.
How did you verify/test it?
Tested that after enabling the temperature polling by
sonic-db-cli CONFIG_DB hset 'GEARBOX_SENSORS|GEARBOX_SENSORS_POLLER_INTERVAL' interval 10
sonic-db-cli CONFIG_DB hset 'GEARBOX_SENSORS|GEARBOX_SENSORS_POLLER_STATUS' admin_status enable
The temperature per phy could be shown by
root@ctd303:/home/admin# sonic-db-cli STATE_DB hgetall 'GEARBOX_TEMPERATURE_INFO|phy:1'
{'temperature_0': '47', 'maximum_temperature': '47', 'average_temperature': '47'}
Any platform specific information?
This change will apply to all platforms using gbsyncd. Depending the specific type of the gearbox or phy, the number of sensors showing up could be different.
Documentation