-
Notifications
You must be signed in to change notification settings - Fork 32
Check self's mux mode before switching peer to standby & add support for detach
mode
#79
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
Conversation
detach
mode
What is |
Updated PR description. |
); | ||
enterPeerMuxState(label); | ||
mMuxPortPtr->setPeerMuxState(label); | ||
startPeerMuxWaitTimer(); |
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.
for the detach mode, could you please point , where is the actual logic to not query the peer ToR's gRPC API's ?
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.
Currently querying SELF & PEER is using a same DB table entry. Per offline discussion, will make another PR to separate in the future.
This PR only avoids setting PEER's state.
); | ||
enterPeerMuxState(label); | ||
mMuxPortPtr->setPeerMuxState(label); | ||
startPeerMuxWaitTimer(); |
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.
for the detach mode, could you please point , where is the actual logic to not query the peer ToR's gRPC API's ?
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.
LGTM
/AZP run |
Azure Pipelines successfully started running 1 pipeline(s). |
…for `detach` mode (#79) ### Description of PR Summary: Fixes # (issue) Make sure self ToR is in `auto` mode before switching peer to `standby`. Also add support for `detach` mode. `detach` mode is equal to `auto` mode for SELF, but under this mode, ToR won't touch PEER's status. sign-off: Jing Zhang [email protected] ### Type of change - [x] Bug fix - [x] New feature
What I did Add support for config mux mode detach. Stemming from sonic-net/sonic-linkmgrd#79 sign-off: Jing Zhang [email protected] How I did it Add detach to the choice list. How to verify it Existing unit test. Tested on DUT
What I did Add support for config mux mode detach. Stemming from sonic-net/sonic-linkmgrd#79 sign-off: Jing Zhang [email protected] How I did it Add detach to the choice list. How to verify it Existing unit test. Tested on DUT
What I did Add support for config mux mode detach. Stemming from sonic-net/sonic-linkmgrd#79 sign-off: Jing Zhang [email protected] How I did it Add detach to the choice list. How to verify it Existing unit test. Tested on DUT
What I did Add support for config mux mode detach. Stemming from sonic-net/sonic-linkmgrd#79 sign-off: Jing Zhang [email protected] How I did it Add detach to the choice list. How to verify it Existing unit test. Tested on DUT
What I did Add support for config mux mode detach. Stemming from sonic-net/sonic-linkmgrd#79 sign-off: Jing Zhang [email protected] How I did it Add detach to the choice list. How to verify it Existing unit test. Tested on DUT
What I did Add support for config mux mode detach. Stemming from sonic-net/sonic-linkmgrd#79 sign-off: Jing Zhang [email protected] How I did it Add detach to the choice list. How to verify it Existing unit test. Tested on DUT
Description of PR
Summary:
Fixes # (issue)
Make sure self ToR is in
auto
mode before switching peer tostandby
. Also add support fordetach
mode.detach
mode is equal toauto
mode for SELF, but under this mode, ToR won't touch PEER's status.sign-off: Jing Zhang [email protected]
Type of change
Approach
What is the motivation for this PR?
How did you do it?
How did you verify/test it?
Any platform specific information?
Documentation