Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[202311][mellanox][generate_dump]: Fix DFW dumps collection #15

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
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
6 changes: 5 additions & 1 deletion scripts/generate_dump
Original file line number Diff line number Diff line change
Expand Up @@ -1266,7 +1266,11 @@ collect_mellanox_dfw_dumps() {
trap 'handle_error $? $LINENO' ERR
local platform=$(python3 -c "from sonic_py_common import device_info; print(device_info.get_platform())")
local hwsku=$(python3 -c "from sonic_py_common import device_info; print(device_info.get_hwsku())")
local sdk_dump_path=`cat /usr/share/sonic/device/${platform}/${hwsku}/sai.profile|grep "SAI_DUMP_STORE_PATH"|cut -d = -f2`

if [[ "$(docker container inspect -f '{{.State.Running}}' syncd)" == "true" ]]; then
local sdk_dump_cmd="cat /etc/mlnx/sai-common.profile | grep SAI_DUMP_STORE_PATH | cut -d= -f2"
local sdk_dump_path="$(eval docker exec syncd ${sdk_dump_cmd})"
fi

if [[ ! -d $sdk_dump_path ]]; then
# This would mean the SAI_DUMP_STORE_PATH is not mounted on the host and is only accessible though the container
Expand Down
Loading