Skip to content

[VNET]Fixing nexthop group delete during route change#2198

Merged
prsunny merged 2 commits intosonic-net:masterfrom
dgsudharsan:vnet_nhg_fix
Mar 29, 2022
Merged

[VNET]Fixing nexthop group delete during route change#2198
prsunny merged 2 commits intosonic-net:masterfrom
dgsudharsan:vnet_nhg_fix

Conversation

@dgsudharsan
Copy link
Collaborator

What I did
When a VNET with nexthop group is replaced with a single nexthop the following error is seen in the test
Mar 23 14:08:30.801303 r-leopard-01 ERR swss#orchagent: :- doTask: Parse error: Error converting 100.0.5.1@@0@00:00:00:00:00:00,100.0.6.1@@0@00:00:00:00:00:00 to NextHop

Why I did it
The issue is due to the reason that in the removing existing nexthop flow, instead of looking at size of existing nexthop to determine if it is a group or single NH, the new nexthop is considered which leads to incorrect classification in the above scenario.
Modified the code to consider the existing nhg instead of new ones.

How I verified it
Verified the case by testing the above scenario.

Details if related

@dgsudharsan
Copy link
Collaborator Author

/azpw run Azure.sonic-swss (BuildArm arm64)

@mssonicbld
Copy link
Collaborator

/AzurePipelines run Azure.sonic-swss (BuildArm arm64)

@azure-pipelines
Copy link

No pipelines are associated with this pull request.

@prsunny
Copy link
Collaborator

prsunny commented Mar 25, 2022

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@liat-grozovik
Copy link
Collaborator

/azp run Azure.sonic-swss

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@dgsudharsan
Copy link
Collaborator Author

/azpw run Azure.sonic-swss

@mssonicbld
Copy link
Collaborator

/AzurePipelines run Azure.sonic-swss

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@prsunny
Copy link
Collaborator

prsunny commented Mar 28, 2022

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@dgsudharsan
Copy link
Collaborator Author

/azpw run Azure.sonic-swss

@mssonicbld
Copy link
Collaborator

/AzurePipelines run Azure.sonic-swss

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@dgsudharsan
Copy link
Collaborator Author

/azpw run Azure.sonic-swss

@mssonicbld
Copy link
Collaborator

/AzurePipelines run Azure.sonic-swss

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@prsunny prsunny merged commit c1d47e6 into sonic-net:master Mar 29, 2022
qiluo-msft pushed a commit that referenced this pull request Mar 29, 2022
*[Overlay ECMP] Fix for VNET with nexthop group is replaced with a single nexthop
judyjoseph pushed a commit that referenced this pull request Apr 4, 2022
*[Overlay ECMP] Fix for VNET with nexthop group is replaced with a single nexthop
preetham-singh pushed a commit to preetham-singh/sonic-swss that referenced this pull request Aug 6, 2022
*[Overlay ECMP] Fix for VNET with nexthop group is replaced with a single nexthop
@dgsudharsan dgsudharsan deleted the vnet_nhg_fix branch March 9, 2023 02:01
Janetxxx pushed a commit to Janetxxx/sonic-swss that referenced this pull request Nov 10, 2025
*[Overlay ECMP] Fix for VNET with nexthop group is replaced with a single nexthop
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.

6 participants