[platform][barefoot] Fix as9516bf installation (#6938)

To fix sonic_platform installation on as9516bf platform

Signed-off-by: Volodymyr Boyko <volodymyrx.boiko@intel.com>
This commit is contained in:
Volodymyr Boiko 2021-03-03 19:23:40 +02:00 committed by GitHub
parent b6fc13b89b
commit be3d4e9a81
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 32 additions and 27 deletions

View File

@ -1,27 +0,0 @@
#!/bin/sh
set -e
depmod -a
systemctl enable bfn-newport.service
systemctl start bfn-newport.service
PLATFORM_NAME=x86_64-accton_as9516bf_32d-r0
SONIC_PLATFORM_WHEEL_PY2="/usr/share/sonic/device/${PLATFORM_NAME}/sonic_platform-1.0-py2-none-any.whl"
if [ -e ${SONIC_PLATFORM_WHEEL_PY2} ]; then
python2 -m pip install ${SONIC_PLATFORM_WHEEL_PY2}
fi
SONIC_PLATFORM_WHEEL_PY3="/usr/share/sonic/device/${PLATFORM_NAME}/sonic_platform-1.0-py3-none-any.whl"
if [ -e ${SONIC_PLATFORM_WHEEL_PY3} ]; then
python3 -m pip install ${SONIC_PLATFORM_WHEEL_PY3}
fi
PLATFORM_NAME=x86_64-accton_as9516_32d-r0
SONIC_PLATFORM_WHEEL_PY2="/usr/share/sonic/device/${PLATFORM_NAME}/sonic_platform-1.0-py2-none-any.whl"
if [ -e ${SONIC_PLATFORM_WHEEL_PY2} ]; then
python2 -m pip install ${SONIC_PLATFORM_WHEEL_PY2}
fi
SONIC_PLATFORM_WHEEL_PY3="/usr/share/sonic/device/${PLATFORM_NAME}/sonic_platform-1.0-py3-none-any.whl"
if [ -e ${SONIC_PLATFORM_WHEEL_PY3} ]; then
python3 -m pip install ${SONIC_PLATFORM_WHEEL_PY3}
fi
#DEBHELPER#

View File

@ -0,0 +1,13 @@
#!/bin/sh
set -e
depmod -a
systemctl enable bfn-newport.service
systemctl start bfn-newport.service
PLATFORM_NAME=x86_64-accton_as9516_32d-r0
SONIC_PLATFORM_WHEEL_PY2="/usr/share/sonic/device/${PLATFORM_NAME}/sonic_platform-1.0-py2-none-any.whl"
python2 -m pip install ${SONIC_PLATFORM_WHEEL_PY2}
SONIC_PLATFORM_WHEEL_PY3="/usr/share/sonic/device/${PLATFORM_NAME}/sonic_platform-1.0-py3-none-any.whl"
python3 -m pip install ${SONIC_PLATFORM_WHEEL_PY3}
#DEBHELPER#

View File

@ -0,0 +1,13 @@
#!/bin/sh
set -e
depmod -a
systemctl enable bfn-newport.service
systemctl start bfn-newport.service
PLATFORM_NAME=x86_64-accton_as9516bf_32d-r0
SONIC_PLATFORM_WHEEL_PY2="/usr/share/sonic/device/${PLATFORM_NAME}/sonic_platform-1.0-py2-none-any.whl"
python2 -m pip install ${SONIC_PLATFORM_WHEEL_PY2}
SONIC_PLATFORM_WHEEL_PY3="/usr/share/sonic/device/${PLATFORM_NAME}/sonic_platform-1.0-py3-none-any.whl"
python3 -m pip install ${SONIC_PLATFORM_WHEEL_PY3}
#DEBHELPER#

View File

@ -0,0 +1,6 @@
#!/bin/sh
python2 -m pip uninstall -y sonic-platform
python3 -m pip uninstall -y sonic-platform
#DEBHELPER#