Skip to content

Avoid updating the NHGroup when mux state changes.#126

Merged
yxieca merged 2 commits intoAzure:202501from
manamand2020:mux_avoid_nhgroup_update
Aug 13, 2025
Merged

Avoid updating the NHGroup when mux state changes.#126
yxieca merged 2 commits intoAzure:202501from
manamand2020:mux_avoid_nhgroup_update

Conversation

@manamand2020
Copy link
Copy Markdown

@manamand2020 manamand2020 commented Aug 11, 2025

Port PR sonic-net/sonic-swss#3822
NHGroup update is not required during mux state updates. When a mux neighbor in a ECMP NexthopGroup changes state to standby we point the prefix route originally pointing to the ECMP nexthop group to any available active neighbor NH or tunnel NH and the original ECMP nexthopgroup remains unused, so this update is useless and uncessarily takes extra SAI calls. This fix also avoid creation of nexthop group with a mix of different types of NextHops which will allow platform that do not support such nexthop groups.

Signed-off-by: Manas Kumar Mandal <manamand@cisco.com>
@manamand2020 manamand2020 requested a review from prsunny as a code owner August 11, 2025 23:17
Copy link
Copy Markdown

@Ndancejic Ndancejic left a comment

Choose a reason for hiding this comment

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

lgtm

@yxieca yxieca merged commit 670b738 into Azure:202501 Aug 13, 2025
5 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.

3 participants