Add support for ODL credentials that have changed
[integration.git] / test / csit / scripts / common_functions.sh
index 4293a52..684c418 100755 (executable)
@@ -250,3 +250,14 @@ function bypass_ip_adress ()
         export no_proxy=$no_proxy,$ip_address
     fi
 }
+
+function wait_for_service_init ()
+{
+    local service_url=$1
+
+    for delay in {1..50}; do
+        curl -sS ${service_url} && break
+        echo "$delay - Waiting for $service_url..."
+        sleep $delay
+    done
+}