Revert "VOL-3213 - allow settings for onos and bbsim"
This reverts commit e1b1e082aaae298c72ec0b58a4b1cd307be9f648.
Reason for revert: causing pipeline to fail
Change-Id: Ie0ab97381afad61eb6d128a40400d90b79aa26b0
diff --git a/scripts/ced b/scripts/ced
index e1e1527..1d85473 100755
--- a/scripts/ced
+++ b/scripts/ced
@@ -1,12 +1,4 @@
#!/usr/bin/env bash
-REQ=$(test $# -gt 0 && echo $1 || echo 0)
-IDX=$((REQ + 1))
set -x
-BBSIM=$(kubectl get --all-namespaces -l app=bbsim svc -o json | jq -r '.items[] | .metadata.name + "." + .metadata.namespace + ".svc:50060"' | sed "$IDX!d")
-set +x
-if [[ -z "$BBSIM" ]]; then
- >&2 echo "ERROR: No BBSIM instance found as index '$REQ'"
- exit 1
-fi
-set -x
+BBSIM=$(kubectl get --all-namespaces -l app=bbsim svc -o json | jq -r '.items[] | .metadata.name + "." + .metadata.namespace + ".svc:50060"' | head -1)
exec voltctl device enable "$(voltctl device create -t openolt -H "$BBSIM")"