[Barefoot][Syncd] restart of the interface for cleaning txquee through which communication takes place between Sonic and openBMC (#9941)
Why I did it improvement of starting barefoot SDK How I did it restart of the interface for cleaning txquee through which communication takes place between Sonic and openBMC How to verify it run sonic autorestart tests
This commit is contained in:
parent
f0ddd102d5
commit
bf4ab4a338
@ -28,6 +28,14 @@ function startplatform() {
|
||||
debug "Firmware update procedure ended"
|
||||
fi
|
||||
|
||||
if [[ x"$sonic_asic_platform" == x"barefoot" ]]; then
|
||||
is_usb0=$(ls /sys/class/net | grep usb0)
|
||||
if [[ "$is_usb0" == "usb0" ]]; then
|
||||
/usr/bin/ip link set usb0 down
|
||||
/usr/bin/ip link set usb0 up
|
||||
fi
|
||||
fi
|
||||
|
||||
if [[ x"$WARM_BOOT" != x"true" ]]; then
|
||||
if [ x$sonic_asic_platform == x'cavium' ]; then
|
||||
/etc/init.d/xpnet.sh start
|
||||
|
Loading…
Reference in New Issue
Block a user