summaryrefslogtreecommitdiffstats
path: root/ci/util.sh
diff options
context:
space:
mode:
authorTim Rozet <trozet@redhat.com>2016-07-20 15:55:56 -0400
committerTim Rozet <trozet@redhat.com>2016-07-20 15:55:56 -0400
commit7687bc27268fee5ac35f13a0a560a9f3f6136adb (patch)
treedfe25fab420b4c5fe76bf5ea15b0d53637ad2308 /ci/util.sh
parentfc05928f79e121e08d157abae4a1c280c2be1934 (diff)
Adds utility to connect to ODL karaf console
JIRA: APEX-185 Change-Id: I1e281f5905cc1db05d0f654503d91acda853c183 Signed-off-by: Tim Rozet <trozet@redhat.com>
Diffstat (limited to 'ci/util.sh')
-rwxr-xr-xci/util.sh8
1 files changed, 7 insertions, 1 deletions
diff --git a/ci/util.sh b/ci/util.sh
index ad7f078..f48dcd7 100755
--- a/ci/util.sh
+++ b/ci/util.sh
@@ -5,7 +5,7 @@
CONFIG=${CONFIG:-'/var/opt/opnfv'}
RESOURCES=${RESOURCES:-"$CONFIG/images"}
LIB=${LIB:-"$CONFIG/lib"}
-VALID_CMDS="undercloud overcloud debug-stack -h --help"
+VALID_CMDS="undercloud overcloud opendaylight debug-stack -h --help"
source $LIB/utility-functions.sh
@@ -27,6 +27,8 @@ display_usage() {
echo -e " user Optional: Defaults to 'stack'\n"
echo -e " command Optional: Defaults to none\n"
echo -e ""
+ echo -e " opendaylight Connect to OpenDaylight Karaf console\n"
+ echo -e ""
echo -e " overcloud [ node [ command ] ] Connect to an Overcloud node and optionally execute a command\n"
echo -e " node Required: in format controller|compute<number>. Example: controller0\n"
echo -e " command Optional: Defaults to none\n"
@@ -79,6 +81,10 @@ parse_cmdline() {
fi
exit 0
;;
+ opendaylight)
+ opendaylight_connect
+ exit 0
+ ;;
debug-stack)
undercloud_connect stack "$(typeset -f debug_stack); debug_stack"
exit 0