From ec3a3ad1721ced0c9c216a891f7873a56ab3bcd8 Mon Sep 17 00:00:00 2001 From: mssonicbld <79238446+mssonicbld@users.noreply.github.com> Date: Sat, 25 Apr 2026 02:13:57 +0800 Subject: [PATCH] Fix Pensando DPU reboot handling in smartswitch operations (#4493) Modified reboot scripts to properly handle Pensando ASIC type during smartswitch reboot operations to prevent unnecessary service disruptions. Changes: scripts/reboot: - Exclude Pensando from ASIC shutdown sequence (similar to Mellanox) - Skip stopping swss service for Pensando during ASAN cleanup Signed-off-by: Sonic Build Admin #### What I did #### How I did it #### How to verify it #### Previous command output (if the output of a command-line utility has changed) #### New command output (if the output of a command-line utility has changed) --- scripts/reboot | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/reboot b/scripts/reboot index 230aced47..bd2863fdc 100755 --- a/scripts/reboot +++ b/scripts/reboot @@ -98,7 +98,7 @@ function stop_sonic_services() systemctl stop mux fi - if [[ x"$ASIC_TYPE" != x"mellanox" ]]; then + if [[ x"$ASIC_TYPE" != x"mellanox" && x"$ASIC_TYPE" != x"pensando" ]]; then ASIC_CONF=${DEVPATH}/$PLATFORM/asic.conf if [ -f "$ASIC_CONF" ]; then source $ASIC_CONF @@ -122,7 +122,9 @@ function stop_sonic_services() function stop_services_asan() { debug "Stopping swss for ASAN" - systemctl stop swss + if [[ x"$ASIC_TYPE" != x"pensando" ]]; then + systemctl stop swss + fi } function clear_warm_boot()