Skip to content

Commit

Permalink
[teamd]: Remove deprecated blocking logic before starting teamd (#976)
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
Shuotian Cheng authored and taoyl-ms committed Oct 3, 2017
1 parent 9fe94ad commit 4ff0ee5
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions dockers/docker-teamd/teamd.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 4ff0ee5

Please sign in to comment.