@@ -8,7 +8,7 @@ DEBUGLOG="/tmp/swss-syncd-debug$DEV.log"
8
8
LOCKFILE=" /tmp/swss-syncd-lock$DEV "
9
9
NAMESPACE_PREFIX=" asic"
10
10
ETC_SONIC_PATH=" /etc/sonic/"
11
-
11
+ TSA_TSB_SERVICE= " startup_tsa_tsb.service "
12
12
13
13
. /usr/local/bin/asic_status.sh
14
14
@@ -109,9 +109,9 @@ function clean_up_tables()
109
109
110
110
# This function cleans up the chassis db table entries created ONLY by this asic
111
111
# This is used to do the clean up operation when the line card / asic reboots
112
- # When the asic/lc is RE-booting, the chassis db server is supposed to be running
113
- # in the supervisor. So the clean up is done when only the chassis db connectable.
114
- # Otherwise no need to do the clean up since both the supervisor and line card may be
112
+ # When the asic/lc is RE-booting, the chassis db server is supposed to be running
113
+ # in the supervisor. So the clean up is done when only the chassis db connectable.
114
+ # Otherwise no need to do the clean up since both the supervisor and line card may be
115
115
# rebooting (the whole chassis scenario)
116
116
# The clean up operation is required to delete only those entries created by
117
117
# the asic that is rebooted. Entries from the following tables are deleted in the order
@@ -212,7 +212,7 @@ function clean_up_chassis_db_tables()
212
212
debug " Chassis db clean up for ${SERVICE} $DEV . Number of SYSTEM_LAG_MEMBER_TABLE entries deleted: $num_lag_mem "
213
213
214
214
# Wait for some time before deleting system lag so that the all the memebers of the
215
- # system lag will be cleared.
215
+ # system lag will be cleared.
216
216
# This delay is needed only if some system lag members were deleted
217
217
218
218
if [[ $num_lag_mem > 0 ]]; then
@@ -258,6 +258,12 @@ start_peer_and_dependent_services() {
258
258
check_warm_boot
259
259
260
260
if [[ x" $WARM_BOOT " != x" true" ]]; then
261
+ SERVICES_CONF=" /usr/share/sonic/device/$PLATFORM /services.conf"
262
+ if [[ -f $SERVICES_CONF ]] && grep -q " ^startup_tsa_tsb.service$" $SERVICES_CONF ; then
263
+ echo " ${SERVICE} $DEV : starting TSA-TSB service"
264
+ /bin/systemctl restart $TSA_TSB_SERVICE
265
+ fi
266
+
261
267
for peer in ${PEER} ; do
262
268
if [[ ! -z $DEV ]]; then
263
269
/bin/systemctl start ${peer} @$DEV
0 commit comments