[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:
parent
7a9894a99c
commit
0f6c8c14e8
@ -24,15 +24,5 @@ function clean_up {
|
|||||||
|
|
||||||
trap clean_up SIGTERM SIGKILL
|
trap clean_up SIGTERM SIGKILL
|
||||||
|
|
||||||
# Before teamd could automatically add newly created host interfaces into the
|
start_app
|
||||||
# LAG, this workaround will wait until the host interfaces are created and then
|
read
|
||||||
# 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
|
|
||||||
|
Loading…
Reference in New Issue
Block a user