Skip to content

Commit

Permalink
[Supervisor][fabric] Fix the error message for non-present fabric car…
Browse files Browse the repository at this point in the history
…d during config reload on SUP

Signed-off-by: mlok <marty.lok@nokia.com>
  • Loading branch information
mlok-nokia committed Aug 2, 2024
1 parent 0213180 commit d02e318
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions files/build_templates/docker_image_ctl.j2
Original file line number Diff line number Diff line change
Expand Up @@ -731,6 +731,16 @@ stop() {
/usr/local/bin/container stop -t 60 $DOCKERNAME
{%- elif docker_container_name in ["swss", "syncd"] and enable_asan == "y" %}
/usr/local/bin/container stop -t 60 $DOCKERNAME
{%- elif docker_container_name in ["swss", "syncd"] %}
if [[ -f /etc/sonic/chassisdb.conf ]]; then
asic_key=$(sonic-db-cli CHASSIS_STATE_DB keys "CHASSIS_FABRIC_ASIC_TABLE|asic$DEV")
container_id=$(docker ps -a -q -f name="$DOCKERNAME")
if [[ ! -z "$container_id" ]] || [[ ! -z "$asic_key" ]]; then
/usr/local/bin/container stop $DOCKERNAME
fi
else
/usr/local/bin/container stop $DOCKERNAME
fi
{%- else %}
/usr/local/bin/container stop $DOCKERNAME
{%- endif %}
Expand Down

0 comments on commit d02e318

Please sign in to comment.