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

[action] [PR:279] [active-active] Fix extra toggle after default route N/A (#279) #280

Merged
merged 1 commit into from
Nov 13, 2024

Conversation

mssonicbld
Copy link
Collaborator

Approach
What is the motivation for this PR?
Fixes #278

Fix the extra toggle after the default route N/A.

(active, active, up), ok <- default route n/a
-> toggle to standby
(active, standby, up), n/a <- mux probe active from the periodically probe
(active, active, up), n/a <- mux state standby returned from the toggle to standby
(active, standby, up), n/a -> toggle to active
(active, active, up), n/a <- mux state active returned from the toggle to active
(active, active, up), n/a <- link prober unknown
(unknown, active, up), n/a -> toggle to standby
(unknown, standby, up), n/a <- mux state standby returned from toggle to standby
Signed-off-by: Longxiang Lyu [email protected]

Work item tracking
Microsoft ADO (number only): 30186968
How did you do it?
Let's check the default route state when the mux transits into (active, standby, up), if the default route state is N/A, skip the toggle to active.

How did you verify/test it?
UT

Approach
What is the motivation for this PR?
Fixes sonic-net#278

Fix the extra toggle after the default route N/A.

(active, active, up), ok                        <- default route n/a
                                                -> toggle to standby
(active, standby, up), n/a                      <- mux probe active from the periodically probe
(active, active, up), n/a                       <- mux state standby returned from the toggle to standby
(active, standby, up), n/a                      -> toggle to active
(active, active, up), n/a                       <- mux state active returned from the toggle to active
(active, active, up), n/a                       <- link prober unknown
(unknown, active, up), n/a                      -> toggle to standby
(unknown, standby, up), n/a                     <- mux state standby returned from toggle to standby
Signed-off-by: Longxiang Lyu [email protected]

Work item tracking
Microsoft ADO (number only): 30186968
How did you do it?
Let's check the default route state when the mux transits into (active, standby, up), if the default route state is N/A, skip the toggle to active.

How did you verify/test it?
UT
@mssonicbld
Copy link
Collaborator Author

Original PR: #279

@mssonicbld mssonicbld merged commit 7bd6566 into sonic-net:202405 Nov 13, 2024
9 checks passed
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.

2 participants