Skip to content

Update init_cfg to enable macsec on UpperSpineRouter#25153

Merged
yxieca merged 2 commits intosonic-net:masterfrom
tjchadaga:init_cfg_fix_ut2
Jan 29, 2026
Merged

Update init_cfg to enable macsec on UpperSpineRouter#25153
yxieca merged 2 commits intosonic-net:masterfrom
tjchadaga:init_cfg_fix_ut2

Conversation

@tjchadaga
Copy link
Contributor

Why I did it

To enable macsec on UpperSpineRouters when the device is capable at init time

Work item tracking
  • Microsoft ADO (number only):

How I did it

Modify init_cfg.json to enable macsec on UpperSpineRouter when platform is macsec capable

How to verify it

Macsec feature is enabled on supported device if it is a SpineRouter or UpperSpineRouter

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

  • 202305
  • 202311
  • 202405
  • 202411
  • 202505
  • 202511

Tested branch (Please provide the tested image version)

Description for the changelog

Link to config_db schema for YANG module changes

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

@tjchadaga tjchadaga requested a review from lguohan as a code owner January 21, 2026 23:22
Copilot AI review requested due to automatic review settings January 21, 2026 23:22
@mssonicbld
Copy link
Collaborator

/azp run Azure.sonic-buildimage

@tjchadaga tjchadaga requested a review from arlakshm January 21, 2026 23:22
@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Copy link
Contributor

Copilot AI left a comment

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 enables macsec feature on UpperSpineRouter device types at initialization time, extending the existing support that was previously limited to SpineRouter devices. The change ensures that macsec is automatically enabled during init for both SpineRouter and UpperSpineRouter devices when the platform supports macsec capability.

Changes:

  • Modified the macsec feature initialization condition to include UpperSpineRouter alongside SpineRouter

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@mssonicbld
Copy link
Collaborator

/azp run Azure.sonic-buildimage

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@tjchadaga tjchadaga requested a review from qiluo-msft January 22, 2026 20:00
Copilot AI review requested due to automatic review settings January 28, 2026 21:41
@mssonicbld
Copy link
Collaborator

/azp run Azure.sonic-buildimage

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@rlhui
Copy link
Contributor

rlhui commented Jan 29, 2026

@tjchadaga please check build failure, thanks.

@yxieca yxieca merged commit 27428b3 into sonic-net:master Jan 29, 2026
29 of 31 checks passed
@mssonicbld
Copy link
Collaborator

Cherry-pick PR to 202511: #25235

xincunli-sonic pushed a commit to xincunli-sonic/sonic-buildimage that referenced this pull request Feb 2, 2026
…apable (sonic-net#25153)

Why I did it
To enable macsec on UpperSpineRouters when the device is capable at init time

How I did it
Modify init_cfg.json to enable macsec on UpperSpineRouter when platform is macsec capable

How to verify it
Macsec feature is enabled on supported device if it is a SpineRouter or UpperSpineRouter

Signed-off-by: Tejaswini Chadaga <[email protected]>
Co-authored-by: Vineet  Mittal <[email protected]>
Signed-off-by: Xincun Li <[email protected]>
FengPan-Frank pushed a commit to FengPan-Frank/sonic-buildimage that referenced this pull request Mar 6, 2026
…apable (sonic-net#25153)

Why I did it
To enable macsec on UpperSpineRouters when the device is capable at init time

How I did it
Modify init_cfg.json to enable macsec on UpperSpineRouter when platform is macsec capable

How to verify it
Macsec feature is enabled on supported device if it is a SpineRouter or UpperSpineRouter

Signed-off-by: Tejaswini Chadaga <[email protected]>
Co-authored-by: Vineet  Mittal <[email protected]>
Signed-off-by: Feng Pan <[email protected]>
dprital pushed a commit that referenced this pull request Mar 19, 2026
…apable (#25153)

Why I did it
To enable macsec on UpperSpineRouters when the device is capable at init time

How I did it
Modify init_cfg.json to enable macsec on UpperSpineRouter when platform is macsec capable

How to verify it
Macsec feature is enabled on supported device if it is a SpineRouter or UpperSpineRouter

Signed-off-by: Tejaswini Chadaga <[email protected]>
Co-authored-by: Vineet  Mittal <[email protected]>
Signed-off-by: dprital <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants