Skip to content

[Multi-ASIC] Added fast-reboot support for multi-asic - #804

Merged
vaibhavhd merged 5 commits into
sonic-net:masterfrom
abelamit:fast-reboot-multi-asic
Aug 4, 2026
Merged

[Multi-ASIC] Added fast-reboot support for multi-asic#804
vaibhavhd merged 5 commits into
sonic-net:masterfrom
abelamit:fast-reboot-multi-asic

Conversation

@abelamit

@abelamit abelamit commented Apr 29, 2026

Copy link
Copy Markdown
Contributor

 

Description

Add fast-reboot support for multi-asic devices, according to this HLD - [Multi-ASIC] Added fast-reboot support for multi-asic

 

Motivation and Context

The main changes in transceiver daemon are related to checking the fast-reboot state per ASIC instead of globally.

 

How Has This Been Tested?

Single ASIC:
Tested fast-reboot tests, including upgrade scenarios to make sure no degradation.

Multi-ASIC
Tested manually on Multi-ASIC simulation to test that all required functionality works as expected
 

Additional Information (Optional)

Signed-off-by: Yair Raviv <yraviv@nvidia.com>
Signed-off-by: Yair Raviv <yraviv@nvidia.com>
@mssonicbld

Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 1 pipeline(s).

YairRaviv
YairRaviv previously approved these changes Apr 29, 2026
@liat-grozovik

Copy link
Copy Markdown
Collaborator

@vaibhavhd kindly reminder to provide your feedback. if you wish to assing someone else on your behalf please do.

@vaibhavhd
vaibhavhd requested a review from Ryangwaite July 14, 2026 18:45
@vaibhavhd

Copy link
Copy Markdown

@Ryangwaite please review

Comment thread sonic-xcvrd/xcvrd/xcvrd_utilities/common.py
@Ryangwaite

Copy link
Copy Markdown
Contributor

@abelamit please add details of testing multi-asic and single asic fast-reboot to the description.

Signed-off-by: Yair Raviv <yraviv@nvidia.com>
@mssonicbld

Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).

@YairRaviv
YairRaviv self-requested a review August 3, 2026 07:49
YairRaviv
YairRaviv previously approved these changes Aug 3, 2026
@YairRaviv

YairRaviv commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

@abelamit please add details of testing multi-asic and single asic fast-reboot to the description.

@Ryangwaite Done

@dgsudharsan
dgsudharsan requested a review from Ryangwaite August 3, 2026 16:04
Ryangwaite
Ryangwaite previously approved these changes Aug 4, 2026
Comment thread sonic-xcvrd/xcvrd/xcvrd.py Outdated
@prgeor
prgeor requested a lite review from Copilot August 4, 2026 04:35

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the sonic-xcvrd transceiver daemon to support multi-ASIC fast reboot behavior by tracking warm/fast-reboot state per ASIC/namespace and suppressing media-setting notifications accordingly.

Changes:

  • Add per-namespace warm/fast-reboot status caching and gate notify_media_setting() per logical port in SfpStateUpdateTask.
  • Update CMIS manager logic to check fast-reboot status per logical port/ASIC instead of globally.
  • Extend common.is_fast_reboot_enabled() with a namespace parameter and add/adjust unit tests for the new per-lport behaviors.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

File Description
sonic-xcvrd/xcvrd/xcvrd.py Cache warm/fast-reboot status per namespace and skip media setting notifications per port during warm/fast reboot.
sonic-xcvrd/xcvrd/xcvrd_utilities/common.py Add namespace argument to is_fast_reboot_enabled() and switch implementation to DB read (vs shell).
sonic-xcvrd/xcvrd/cmis/cmis_manager_task.py Cache fast-reboot status per namespace and use it per logical port.
sonic-xcvrd/tests/test_xcvrd.py Add unit tests for new per-lport fast reboot and warm/fast reboot notification gating logic.

Comment thread sonic-xcvrd/xcvrd/xcvrd.py Outdated
Signed-off-by: Yair Raviv <yraviv@nvidia.com>
@YairRaviv
YairRaviv dismissed stale reviews from Ryangwaite and themself via b3ae636 August 4, 2026 10:55
@mssonicbld

Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).

@YairRaviv
YairRaviv self-requested a review August 4, 2026 10:55
YairRaviv
YairRaviv previously approved these changes Aug 4, 2026
Signed-off-by: Yair Raviv <yraviv@nvidia.com>
@mssonicbld

Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).

@YairRaviv
YairRaviv self-requested a review August 4, 2026 12:05
@vaibhavhd
vaibhavhd merged commit 65d2bb8 into sonic-net:master Aug 4, 2026
6 checks passed
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.

8 participants