From a1d32c6d51299a1a79051fa81570bc0d5c7699a1 Mon Sep 17 00:00:00 2001 From: Moshe Levi Date: Sun, 7 Feb 2016 16:28:48 +0200 Subject: [PATCH] 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 --- elements/dhcp-all-interfaces/install.d/dhcp-all-interfaces.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/elements/dhcp-all-interfaces/install.d/dhcp-all-interfaces.sh b/elements/dhcp-all-interfaces/install.d/dhcp-all-interfaces.sh index 9acb1ce2..e622078e 100755 --- a/elements/dhcp-all-interfaces/install.d/dhcp-all-interfaces.sh +++ b/elements/dhcp-all-interfaces/install.d/dhcp-all-interfaces.sh @@ -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