[teamd]: Remove deprecated blocking logic before starting teamd (#976)

With the fixes in /etc/network/interfaces file, host interfaces
could be added into the corresponding LAGs automatically. Thus,
the logic of checking if port initialization is ready is no longer
needed.

Signed-off-by: Shu0T1an ChenG <shuche@microsoft.com>
This commit is contained in:
Shuotian Cheng 2017-09-21 14:56:16 -07:00 committed by GitHub
parent 7a9894a99c
commit 0f6c8c14e8

View File

@ -24,15 +24,5 @@ function clean_up {
trap clean_up SIGTERM SIGKILL
# Before teamd could automatically add newly created host interfaces into the
# LAG, this workaround will wait until the host interfaces are created and then
# the processes will be started.
while true; do
# Check if front-panel ports are configured
result=`echo -en "SELECT 0\nHGETALL PORT_TABLE:ConfigDone" | redis-cli | sed -n 3p`
if [ "$result" == "0" ]; then
start_app
read
fi
sleep 1
done
start_app
read