Warmboot Vlan neigh restore fix#1040
Merged
prsunny merged 3 commits intosonic-net:masterfrom Sep 9, 2019
Merged
Conversation
zhenggen-xu
reviewed
Aug 29, 2019
lguohan
approved these changes
Sep 4, 2019
Collaborator
Author
|
retest this please |
2 similar comments
Collaborator
Author
|
retest this please |
Collaborator
Author
|
retest this please |
yxieca
pushed a commit
that referenced
this pull request
Sep 9, 2019
* Send arp request after first Vlan member port is added * Add wait logic after Vlan member add, nbrmgr to wait for restore complete * Address comment to pass db as a parameter and open only once
Contributor
|
nbrmgrd waits restore neighbors for 120s in normal startup? isNeighRestoreDone true only if really do restore. I found VS tests about neighbor/nexthop (vrf new cases) failed because nbrmgrd cannot work. |
Collaborator
Author
|
In normal startup, there is no wait as warmboot flag is disabled and the isNeighRestoreDone flag would be set without any wait. can you provide any logs that nbrmgrd is stuck in VS? |
Contributor
|
nbrmgrd is stuck in VS because:
|
This was referenced Sep 12, 2019
Closed
oleksandrivantsiv
pushed a commit
to oleksandrivantsiv/sonic-swss
that referenced
this pull request
Mar 1, 2023
1. Setup pipeline without manual effort when checkout new release branch. 2. Use correct branch when downloading artifacts or checkout relative repos. 3. Clear downloaded artifacts to avoid using outdated dependencies. 4. Use commonlib pipeline to download libnl3 and libyang instead of vs image build, to increase success rate. 5. Add weekly build to keep artifacts remaining.
Janetxxx
pushed a commit
to Janetxxx/sonic-swss
that referenced
this pull request
Nov 10, 2025
* Send arp request after first Vlan member port is added * Add wait logic after Vlan member add, nbrmgr to wait for restore complete * Address comment to pass db as a parameter and open only once
jianyuewu
pushed a commit
to jianyuewu/sonic-swss
that referenced
this pull request
Dec 24, 2025
Make some changes to fix compilation for Debian Trixie. This includes: Don't mark m_buffer as const, since the memory that it's pointing to is anyways modified by BinarySerializer. Add support for compiling with libhiredis 1.1.0. Add a missing include for <stdexcept>. Use SWIG_AppendOutput instead of SWIG_Python_AppendOutput, as the latter now takes another parameter to indicate if the function's return type is void, and the recommendation appears to be to just use SWIG_AppendOutput. Add a workaround for GCC complaining about attributes being ignored in a template argument when passing in pclose as a function pointer into std::unique_ptr.[1] [1] This is based on https://stackoverflow.com/a/76867913
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What I did
During Warmboot, the restore_neighbor script sends out ARP/NS for Vlan interfaces based on oper status. Since Vlan interface is bound to bridge, it is up by default. Modified to wait for Vlan members to be added.
Logger is changed to syslog for getting correct timestamps for events
Nbrmgrd push to kernel must happen only after warmboot neighbor restoration
Why I did it
To fix neigh restore issue for Vlans
How I verified it
Details if related