Skip to content

[action] [PR:3841] [ssw][ha] set SAI_HA_SCOPE_ATTR_ADMIN_STATE#151

Merged
mssonicbld merged 1 commit intoAzure:202506from
mssonicbld:cherry/msft-202506/3841
Sep 11, 2025
Merged

[action] [PR:3841] [ssw][ha] set SAI_HA_SCOPE_ATTR_ADMIN_STATE#151
mssonicbld merged 1 commit intoAzure:202506from
mssonicbld:cherry/msft-202506/3841

Conversation

@mssonicbld
Copy link
Collaborator

What I did

Take disabled field from HA_SCOPE_TABLE and set ha scope sai attribute SAI_HA_SCOPE_ATTR_ADMIN_STATE accordingly.
https://github.com/opencomputeproject/SAI/blob/b925fc0f0fc8c620eea7d9dead7fc99e33b7b44e/experimental/saiexperimentaldashha.h#L310

sign-off: Jing Zhang zhangjing@microsoft.com

Why I did it

If admin state is not set to true, the state machine won't be activated in ASIC for DPU scope HA.

How I verified it

  • UTs.
  • Integrated tests on DPU.

Details if related

<!--
Please make sure you have read and understood the contribution guildlines:
https://github.com/Azure/SONiC/blob/gh-pages/CONTRIBUTING.md

1. Make sure your commit includes a signature generted with `git commit -s`
2. Make sure your commit title follows the correct format: [component]: description
3. Make sure your commit message contains enough details about the change and related tests
4. Make sure your pull request adds related reviewers, asignees, labels

Please also provide the following information in this pull request:
-->

**What I did**

Take disabled field from HA_SCOPE_TABLE and set ha scope sai attribute `SAI_HA_SCOPE_ATTR_ADMIN_STATE` accordingly.
https://github.com/opencomputeproject/SAI/blob/b925fc0f0fc8c620eea7d9dead7fc99e33b7b44e/experimental/saiexperimentaldashha.h#L310

sign-off: Jing Zhang zhangjing@microsoft.com

**Why I did it**

If admin state is not set to true, the state machine won't be activated in ASIC for DPU scope HA.

**How I verified it**
- UTs.
- Integrated tests on DPU.

**Details if related**
@mssonicbld
Copy link
Collaborator Author

Original PR: sonic-net/sonic-swss#3841

@mssonicbld
Copy link
Collaborator Author

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld mssonicbld merged commit cb3ade6 into Azure:202506 Sep 11, 2025
5 of 8 checks passed
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.

1 participant