From 70c13189cd4a25f3a83e83b4092aa91415ad435c Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Tue, 3 Dec 2019 12:03:35 -0500 Subject: [PATCH] Revert "Remove TSM networking restart" This reverts commit 87df6c9ab6826430469e274f602afd00af2c74e1. --- xCAT-genesis-scripts/usr/bin/bmcsetup | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/xCAT-genesis-scripts/usr/bin/bmcsetup b/xCAT-genesis-scripts/usr/bin/bmcsetup index d845e6dca..a549b71e0 100755 --- a/xCAT-genesis-scripts/usr/bin/bmcsetup +++ b/xCAT-genesis-scripts/usr/bin/bmcsetup @@ -711,6 +711,23 @@ if [ -e /tmp/xcchostnic ]; then ip netns exec mgt ip link set dev $INTERFACE netns 1 /usr/sbin/setupimmnic fi +if [ ! -z "$USBSTATE" ]; then # Continuation of SR635/SR655 specific code + echo -n "Restarting TSM networking...." + if [ "$BMCPORT" = 0 ]; then + sleep 15 + ipmitool raw 0x32 0x71 0 0 0 + sleep 15 + ipmitool raw 0x32 0x71 0 0 3 + else + sleep 15 + ipmitool raw 0x32 0x71 0 1 0 + sleep 15 + ipmitool raw 0x32 0x71 0 1 3 + fi + echo "Done" +# ipmitool raw 0x32 0xaa $USBSTATE +fi + # remove the bmc configuration information before exit rm -f /tmp/ipmicfg.xml