Skip to content

Commit

Permalink
Enable cisco debug shell by default (#1078)
Browse files Browse the repository at this point in the history
Signed-off-by: Venkat Garigipati <venkatg@cisco.com>
  • Loading branch information
VenkatCisco authored Jul 13, 2022
1 parent 14fba45 commit cad0268
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions syncd/scripts/syncd_init_common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,14 @@ config_syncd_cisco_8000()
{
export BASE_OUTPUT_DIR=/opt/cisco/silicon-one
CMD_ARGS+=" -p $HWSKU_DIR/sai.profile"

# Cisco SDK debug shell support
version=$(python3 -V 2>&1 | sed 's/.* \([0-9]\).\([0-9]\).*/\1\.\2/')
if [ ! -z "$version" ]; then
export SAI_SHELL_ENABLE=1
export SAI_DEBUG_PYTHON_SO_PATH=/usr/lib/python${version}/config-${version}m-x86_64-linux-gnu/libpython${version}m.so
export PYTHONPATH=/usr/lib/cisco/pylib
fi
}

config_syncd_bcm()
Expand Down

0 comments on commit cad0268

Please sign in to comment.