-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[platform][barefoot] Fix as9516bf installation (#6938)
To fix sonic_platform installation on as9516bf platform Signed-off-by: Volodymyr Boyko <[email protected]>
- Loading branch information
Showing
5 changed files
with
32 additions
and
27 deletions.
There are no files selected for viewing
27 changes: 0 additions & 27 deletions
27
platform/barefoot/sonic-platform-modules-bfn-newport/debian/postinst
This file was deleted.
Oops, something went wrong.
13 changes: 13 additions & 0 deletions
13
...ic-platform-modules-bfn-newport/debian/sonic-platform-modules-bfn-newport-as9516.postinst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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# |
File renamed without changes.
13 changes: 13 additions & 0 deletions
13
...-platform-modules-bfn-newport/debian/sonic-platform-modules-bfn-newport-as9516bf.postinst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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# |
6 changes: 6 additions & 0 deletions
6
...nic-platform-modules-bfn-newport/debian/sonic-platform-modules-bfn-newport-as9516bf.prerm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/bin/sh | ||
|
||
python2 -m pip uninstall -y sonic-platform | ||
python3 -m pip uninstall -y sonic-platform | ||
|
||
#DEBHELPER# |