Skip to content

Commit

Permalink
[warm reboot] don't remove opennsl module during warm reboot (sonic-n…
Browse files Browse the repository at this point in the history
…et#393)

Signed-off-by: Ying Xie <[email protected]>
  • Loading branch information
yxieca authored and lguohan committed Nov 28, 2018
1 parent 363865d commit bb67cda
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions scripts/fast-reboot
Original file line number Diff line number Diff line change
Expand Up @@ -161,11 +161,13 @@ docker ps -q | xargs docker kill > /dev/null
# Stop the docker container engine. Otherwise we will have a broken docker storage
systemctl stop docker.service

# Stop opennsl modules for Broadcom platform
if [[ "$sonic_asic_type" = 'broadcom' ]];
then
service_name=$(systemctl list-units --plain --no-pager --no-legend --type=service | grep opennsl | cut -f 1 -d' ')
systemctl stop "$service_name"
if [[ "$REBOOT_TYPE" != "warm-reboot" ]]; then
# Stop opennsl modules for Broadcom platform
if [[ "$sonic_asic_type" = 'broadcom' ]];
then
service_name=$(systemctl list-units --plain --no-pager --no-legend --type=service | grep opennsl | cut -f 1 -d' ')
systemctl stop "$service_name"
fi
fi

# Stop kernel modules for Nephos platform
Expand Down

0 comments on commit bb67cda

Please sign in to comment.