-
Notifications
You must be signed in to change notification settings - Fork 30
Permalink
Choose a base ref
{{ refName }}
default
Choose a head ref
{{ refName }}
default
Comparing changes
Choose two branches to see what’s changed or to start a new pull request.
If you need to, you can also or
learn more about diff comparisons.
Open a pull request
Create a new pull request by comparing changes across two branches. If you need to, you can also .
Learn more about diff comparisons here.
base repository: sonic-net/sonic-linkmgrd
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: e191338e863d561d201ff1e272ca37e48441cbc4
Could not load branches
Nothing to show
Loading
Could not load tags
Nothing to show
{{ refName }}
default
Loading
...
head repository: sonic-net/sonic-linkmgrd
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 3e7a9df8a4b3c33fa0af42cd84f6ad5428bdc0e1
Could not load branches
Nothing to show
Loading
Could not load tags
Nothing to show
{{ refName }}
default
Loading
- 3 commits
- 3 files changed
- 2 contributors
Commits on Feb 21, 2023
-
Fix mux config when gRPC connection is lost (#166)
Approach What is the motivation for this PR? Fix issue: #165 Signed-off-by: Longxiang Lyu lolv@microsoft.com How did you do it? Reset the link prober state if the mux state is unknown when the mux config is changed back from active or standby to auto. How did you verify/test it?
Configuration menu - View commit details
-
Copy full SHA for df862ad - Browse repository at this point
Copy the full SHA df862adView commit details -
[active-active] fix issue that interfaces get stuck in
active
if se……rvice starts up with link state down (#169) Description of PR Summary: Fixes # (issue) To fix issue #168. In the failure scenario, the event sequence was write_standby set state to "active" when services restarted mux config auto init link state down init mux state unknown state machine activated, re-init link prober state to (wait, wait, down) link prober state event: unknown, supposed to switch to standby, but there wasn't transaction handler defined for "unknown, unknown, down" or "unknown, wait, down" The fix here is to define no-op handlers to enforce a standby state or a state probing. sign-off: Jing Zhang zhangjing@microsoft.com. Type of change Bug fix Approach What is the motivation for this PR? To switch active interface into standby if link state is down after booting up. How did you do it? Define link down related state transition handlers. How did you verify/test it? Tested on active-active dualtor, show mux status return standby eventually after service was restarted.
Configuration menu - View commit details
-
Copy full SHA for 8ab1b2b - Browse repository at this point
Copy the full SHA 8ab1b2bView commit details -
[active-active] Toggle to standby if default route is missing (#171)
Approach What is the motivation for this PR? To avoid extra disruption after a BGP shutdown. The reason is that, after a BGP shutdown, linkmgrd will stop heartbeats, and both local ToR and peer ToR will receive the heartbeat missing and toggle the local ToR to standby. There is a chance that the peer ToR toggles local ToR to standby first, and the local ToR will probe the mux finding that itself mux state as standby, the local ToR will toggle itself back to active. When the local ToR receives the link prober unknown event, it will toggle itself into standby at last. Signed-off-by: Longxiang Lyu <lolv@microsoft.com> How did you do it? When linkmgrd receives default route missing event, make an extra toggle to standby, so local ToR's toggle to standby should be earlier than peer ToR's. And the disruption total time could be reduced because linkmgrd makes the toggle immediately after receiving the default route missing event instead of waiting for the link prober unknown event after shutdown the heartbeat sending.
Configuration menu - View commit details
-
Copy full SHA for 3e7a9df - Browse repository at this point
Copy the full SHA 3e7a9dfView commit details
There are no files selected for viewing