+ echo -n "."
+ done
+ echo "."
+}
+
+
+# wait_for_e2mgr
+# e2mgr can take a few seconds after the POD is running to be up
+#
+
+wait_for_e2mgr() {
+ E2MGR_IP=$(kubectl -n ricplt get services | grep e2mgr-http | awk '{print $3}')
+ #echo $E2MGR_IP
+ CMD3="curl -s -o /dev/null -w \"%{http_code}\" http://$E2MGR_IP:3800/v1/nodeb-ids"
+ echo $CMD3
+ HTTP_CODE=$(eval "$CMD3")
+ echo $HTTP_CODE
+ while [ $HTTP_CODE -ne 200 ]; do
+ sleep 1
+ HTTP_CODE=$(eval "$CMD3")
+ echo -n "."