-
Notifications
You must be signed in to change notification settings - Fork 537
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Handle learning duplicate IPs on different VRFs #3165
Handle learning duplicate IPs on different VRFs #3165
Conversation
- If we try to learn an existing neighbor on a different VLAN in the same VRF, delete the old neighbor entry before creating the new one. - For all other scenarios, proceed with neighbor learning normally. Signed-off-by: Lawrence Lee <[email protected]>
@theasianpianist , can you fix coverage? |
Signed-off-by: Lawrence Lee <[email protected]>
Signed-off-by: Lawrence Lee <[email protected]>
@dgsudharsan Github is showing that you left some review comments, but I am unable to see them for some reason, can you please re-review w/ new changes? |
{ | ||
SWSS_LOG_NOTICE("Neighbor %s already learned on %s, removing before adding new neighbor", ip_address.to_string().c_str(), vlan_port.c_str()); | ||
} | ||
{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
missing else
Signed-off-by: Lawrence Lee <[email protected]>
orchagent/neighorch.cpp
Outdated
if (vrf_name.empty()) | ||
{ | ||
SWSS_LOG_NOTICE("Neighbor %s already learned on %s, removing before adding new neighbor", ip_address.to_string().c_str(), vlan_port.c_str()); | ||
} else { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
{ -> new line
Signed-off-by: Lawrence Lee <[email protected]>
@theasianpianist would you please create a separate PR for 202311? |
- What I did Fixes sonic-net/sonic-buildimage#18890 If we try to learn an existing neighbor on a different VLAN in the same VRF, delete the old neighbor entry before creating the new one. For all other scenarios, proceed with neighbor learning normally. - Why I did it Allow learning the same IP in two different VRFs - How I verified it Run the C++ unit tests Signed-off-by: Lawrence Lee <[email protected]> Co-authored-by: Prince Sunny <[email protected]>
- What I did Fixes sonic-net/sonic-buildimage#18890 If we try to learn an existing neighbor on a different VLAN in the same VRF, delete the old neighbor entry before creating the new one. For all other scenarios, proceed with neighbor learning normally. - Why I did it Allow learning the same IP in two different VRFs - How I verified it Run the C++ unit tests Signed-off-by: Lawrence Lee <[email protected]> Co-authored-by: Prince Sunny <[email protected]>
What I did
Fixes sonic-net/sonic-buildimage#18890
Why I did it
Allow learning the same IP in two different VRFs
How I verified it
Run the C++ unit tests
Details if related