49a036e90c
Why I did it Add TSA/B/C dualtor support Signed-off-by: Longxiang Lyu lolv@microsoft.com How I did it For TSA, toggle all the mux to standby if the device type is dualtor and there are active mux ports. For TSC, add mux status output. How to verify it Run TSA/B/C on a dualtor setup
12 lines
185 B
Bash
Executable File
12 lines
185 B
Bash
Executable File
#!/bin/bash
|
|
|
|
/usr/bin/TS TSC
|
|
|
|
portstat -p 5
|
|
|
|
if [[ "$(sonic-cfggen -d -v DEVICE_METADATA.localhost.subtype | tr [:upper:] [:lower:])" == *"dualtor"* ]]
|
|
then
|
|
echo
|
|
show mux status
|
|
fi
|