Skip to content
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

[muxorch] run updateroutes before disbling neighbor during update #3149

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

Ndancejic
Copy link
Contributor

fdb update from an active mux port to a standby mux port when a static route was present caused orchagent crash. This is because the route was still pointing to the active neighbor nexthop when disabling this neighbor. This calls updateNexthopRoutes before disabling standby neighbor (but after neighbor nh is updated in muxorch) to set the route nexthop to the tunnel route.

What I did
call updateNextHopRoutes when adding standby neighbor

Why I did it
Mac move between an active and standby mux port while a route was present was causing orchagent crash because route was still pointing to active next hop.

How I verified it
added vstest to cover this scenario

fdb update from an active mux port to a standby mux port when a static
route was present caused orchagent crash. This is because the route was
still pointing to the active neighbor nexthop when disabling this
neighbor. This calls updateNexthopRoutes before disabling standby
neighbor (but after neighbor nh is updated in muxorch) to set the route
nexthop to the tunnel route.

Signed-off-by: Nikola Dancejic <ndancejic@microsoft.com>
@Ndancejic Ndancejic requested a review from prsunny as a code owner May 14, 2024 20:33
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.

1 participant