Skip to content

Commit

Permalink
Add Nephos ASIC (sonic-net#271)
Browse files Browse the repository at this point in the history
-What I did
    Add switch ASIC vendor: Nephos

- How I did it
    Add switch configuration file for Nephos

- How to verify it
    Check switch ports has been created and worked as well

- Description for the changelog
    Add switch ASIC vendor for Nephos

Signed-off-by: Sam Yang <yang.kaiyu@gmail.com>
  • Loading branch information
kaiyu22 authored and lguohan committed Dec 21, 2017
1 parent 345f179 commit 3b817bb
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions syncd/scripts/syncd_init_common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,15 @@ config_syncd_marvell()
[ -e /dev/net/tun ] || ( mkdir -p /dev/net && mknod /dev/net/tun c 10 200 )
}

config_syncd_nephos()
{
CMD_ARGS+=" -p $HWSKU_DIR/sai.profile"

if [ $FAST_REBOOT == "yes" ]; then
CMD_ARGS+=" -t fast"
fi
}

config_syncd()
{
if [ "$SONIC_ASIC_TYPE" == "broadcom" ]; then
Expand All @@ -113,6 +122,8 @@ config_syncd()
config_syncd_centec
elif [ "$SONIC_ASIC_TYPE" == "marvell" ]; then
config_syncd_marvell
elif [ "$SONIC_ASIC_TYPE" == "nephos" ]; then
config_syncd_nephos
else
echo "Unknown ASIC type $SONIC_ASIC_TYPE"
exit 1
Expand Down

0 comments on commit 3b817bb

Please sign in to comment.