Increase interface has link retries to 20

InfiniBand interface takes more time to bring up then
Ethernet interface. This patch just increase the retries
to 20 times, to make it work for InfiniBand as well.

Change-Id: I5c4842696207885552413ea2d053f2e90bd6803c
This commit is contained in:
Moshe Levi 2016-02-07 16:28:48 +02:00
parent 48ae802c5a
commit a1d32c6d51

View File

@ -76,7 +76,7 @@ function inspect_interface() {
local has_link
local tries
for ((tries = 0; tries < 10; tries++)); do
for ((tries = 0; tries < 20; tries++)); do
has_link=$(get_if_link $interface)
[ "$has_link" == "1" ] && break
sleep 1