X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=ci%2Futil.sh;h=6681ff5623a9862d99b0f85134ae8a2c754b3296;hb=97207a12fcc28b13c49674c098a7aba7532e9b87;hp=ad7f07880acc03cdebe2e0fb488b1aab63622b5f;hpb=ddecb36accd3f229ccee6113ee04b9e623885203;p=apex.git diff --git a/ci/util.sh b/ci/util.sh index ad7f0788..6681ff56 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 mock-detached -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. 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