show linkmgrd status in show mux status
#2254
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What I did
Replace status in
show mux status
with APP DBMUX_CABLE_TABLE:<port_name>
, which is written by linkmgrd and indicates linkmgrd's state transition.This change is required for active-active dualtor setup. In active-active setup, we care more about whether state transition happens on ToR side. In tests, we want to see if linkmgrd makes immediate reaction on link state changes. If we continue to use STATE DB entries, when gRPC is not available, we will get
unknow
inshow mux status
, which is not informatic and not the actual value we want to check.sign-off: Jing Zhang [email protected]
How I did it
Use APP DB entries instead of STATE DB.
Move STATE DB to column
SERVER_STATUS
.How to verify it
Unit tests with mock DB values.
Tests on dual testbeds.
Previous command output (if the output of a command-line utility has changed)
New command output (if the output of a command-line utility has changed)