Skip to content

Commit 0f6c8c1

Browse files
author
Shuotian Cheng
authored
[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 <[email protected]>
1 parent 7a9894a commit 0f6c8c1

File tree

1 file changed

+2
-12
lines changed

1 file changed

+2
-12
lines changed

dockers/docker-teamd/teamd.sh

+2-12
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,5 @@ function clean_up {
2424

2525
trap clean_up SIGTERM SIGKILL
2626

27-
# Before teamd could automatically add newly created host interfaces into the
28-
# LAG, this workaround will wait until the host interfaces are created and then
29-
# the processes will be started.
30-
while true; do
31-
# Check if front-panel ports are configured
32-
result=`echo -en "SELECT 0\nHGETALL PORT_TABLE:ConfigDone" | redis-cli | sed -n 3p`
33-
if [ "$result" == "0" ]; then
34-
start_app
35-
read
36-
fi
37-
sleep 1
38-
done
27+
start_app
28+
read

0 commit comments

Comments
 (0)