Skip to content

Commit

Permalink
[swss]: Exiting orchagent with unsupported HWSKU (#650)
Browse files Browse the repository at this point in the history
Echo error message to stderr and exit orchagent.sh starting script
  • Loading branch information
Shuotian Cheng authored May 31, 2017
1 parent 26f9855 commit 8adc490
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions dockers/docker-orchagent/orchagent.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ elif [ "$HWSKU" == "INGRASYS-S8900-54XC" ]; then
ORCHAGENT_ARGS+="-m $MAC_ADDRESS"
elif [ "$HWSKU" == "INGRASYS-S8900-64XC" ]; then
ORCHAGENT_ARGS+="-m $MAC_ADDRESS"
else
echo "Unsupported HWSKU:$HWSKU. Exiting..." > /dev/stderr
exit 1
fi

exec /usr/bin/orchagent ${ORCHAGENT_ARGS}
Expand Down

0 comments on commit 8adc490

Please sign in to comment.