Skip to content

Commit

Permalink
Reliable TSA: Addressing review comments to use SpineRouter in checks…
Browse files Browse the repository at this point in the history
… instead of 'voq' and fix few echo msgs. (sonic-net#19527)

use 'SpineRouter' in checks instead of 'voq' and fix few echo msgs.

Signed-off-by: fountzou <[email protected]>
  • Loading branch information
fountzou authored and arun1355492 committed Jul 26, 2024
1 parent 0ea6a38 commit deb5c3f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions dockers/docker-fpm-frr/base_image_files/TS
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
[ -f /etc/sonic/sonic-environment ] && . /etc/sonic/sonic-environment

PLATFORM=${PLATFORM:-`sonic-cfggen -H -v DEVICE_METADATA.localhost.platform`}
switch_type=`sonic-db-cli CONFIG_DB hget 'DEVICE_METADATA|localhost' 'switch_type'`
type=`sonic-db-cli CONFIG_DB hget 'DEVICE_METADATA|localhost' 'type'`
TSA_CHASSIS_STATE=false

if [[ $switch_type == 'voq' ]]; then
if [[ $type == *"SpineRouter"* ]]; then
TSA_CHASSIS_STATE="$(sonic-db-cli CHASSIS_APP_DB HGET "BGP_DEVICE_GLOBAL|STATE" tsa_enabled)"
fi

Expand Down
2 changes: 1 addition & 1 deletion dockers/docker-fpm-frr/base_image_files/TSA
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ if [ -f /etc/sonic/chassisdb.conf ]; then
echo "Chassis Mode: Normal -> Maintenance"
logger -t TSA -p user.info "Chassis Mode: Normal -> Maintenance"
fi
echo "Please execute \"rexec all -c 'sudo config save -y'\" to preserve System mode in Maintenance after reboot\
echo "Please execute 'sudo config save' to preserve System mode in Maintenance after reboot\
or config reload on all linecards"
exit 0
fi
Expand Down
2 changes: 1 addition & 1 deletion dockers/docker-fpm-frr/base_image_files/TSB
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ if [ -f /etc/sonic/chassisdb.conf ]; then
echo "Chassis Mode: Maintenance -> Normal"
logger -t TSB -p user.info "Chassis Mode: Maintenance -> Normal"
fi
echo "Please execute \"rexec all -c 'sudo config save -y'\" to preserve System mode in Normal state after reboot\
echo "Please execute 'sudo config save' to preserve System mode in Normal state after reboot\
or config reload on all linecards"
exit 0
fi
Expand Down

0 comments on commit deb5c3f

Please sign in to comment.