From 3b817bbe14f1e5177e6200c7a80ab74db4768eaa Mon Sep 17 00:00:00 2001 From: kaiyu22 Date: Thu, 21 Dec 2017 16:12:46 +0800 Subject: [PATCH] Add Nephos ASIC (#271) -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 --- syncd/scripts/syncd_init_common.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/syncd/scripts/syncd_init_common.sh b/syncd/scripts/syncd_init_common.sh index 4324074231..c170c486a4 100755 --- a/syncd/scripts/syncd_init_common.sh +++ b/syncd/scripts/syncd_init_common.sh @@ -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 @@ -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