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

[active-active] Fix extra toggle after default route N/A #279

Merged
merged 1 commit into from
Nov 13, 2024

Conversation

lolyu
Copy link
Contributor

@lolyu lolyu commented Nov 12, 2024

Description of PR

Summary:
Fixes # (issue)

Type of change

  • Bug fix
  • New feature
  • Doc/Design
  • Unit test

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

Any platform specific information?

Documentation

@lolyu lolyu merged commit f3fbf09 into sonic-net:master Nov 13, 2024
9 checks passed
mssonicbld pushed a commit to mssonicbld/sonic-linkmgrd that referenced this pull request Nov 13, 2024
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

Cherry-pick PR to 202405: #280

mssonicbld pushed a commit that referenced this pull request Nov 13, 2024
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
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.

[active-active] Extra toggles are observed when shutdown bgp
4 participants