Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions files/image_config/warmboot-finalizer/finalize-warmboot.sh
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,20 @@ function stop_control_plane_assistant()
fi
}

function restore_counters_folder()
{
debug "Restoring counters folder after warmboot..."

modules=("portstat-0" "dropstat" "pfcstat-0" "queuestat-0" "intfstat-0")
for module in ${modules[@]}
do
statfile="/host/$module"
if [[ -d $statfile ]]; then
mv $statfile /tmp/
fi
done
}


wait_for_database_service

Expand All @@ -86,6 +100,8 @@ if [[ x"${WARM_BOOT}" != x"true" ]]; then
exit 0
fi

restore_counters_folder

list=${COMP_LIST}

# Wait up to 5 minutes
Expand Down