[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:
parent
b6fc13b89b
commit
be3d4e9a81
@ -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#
|
@ -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#
|
@ -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#
|
@ -0,0 +1,6 @@
|
||||
#!/bin/sh
|
||||
|
||||
python2 -m pip uninstall -y sonic-platform
|
||||
python3 -m pip uninstall -y sonic-platform
|
||||
|
||||
#DEBHELPER#
|
Loading…
Reference in New Issue
Block a user