Add dualtor TSA/B/C support (#9726)
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
This commit is contained in:
parent
9ff94d2b9b
commit
259aa0856b
@ -1,3 +1,12 @@
|
||||
#!/bin/bash
|
||||
|
||||
# toggle the mux to standby if dualtor and any mux active
|
||||
if
|
||||
[[ "$(sonic-cfggen -d -v DEVICE_METADATA.localhost.subtype | tr [:upper:] [:lower:])" == *"dualtor"* ]] &&
|
||||
[[ $(show mux status | grep active | wc -l) > 0 ]];
|
||||
then
|
||||
logger -t TSA -p user.info "Toggle all mux mode to standby"
|
||||
sudo config mux mode standby all
|
||||
fi
|
||||
|
||||
/usr/bin/TS TSA
|
||||
|
@ -1,3 +1,10 @@
|
||||
#!/bin/bash
|
||||
|
||||
# toggle the mux to auto if dualtor
|
||||
if [[ "$(sonic-cfggen -d -v DEVICE_METADATA.localhost.subtype | tr [:upper:] [:lower:])" == *"dualtor"* ]];
|
||||
then
|
||||
logger -t TSB -p user.info "Toggle all mux mode to auto"
|
||||
sudo config mux mode auto all
|
||||
fi
|
||||
|
||||
/usr/bin/TS TSB
|
||||
|
@ -3,3 +3,9 @@
|
||||
/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
|
||||
|
Reference in New Issue
Block a user