aboutsummaryrefslogtreecommitdiffstats
path: root/development/bin/dcae-topic.sh
diff options
context:
space:
mode:
authorFilip Krzywka <filip.krzywka@nokia.com>2019-04-08 12:40:26 +0200
committerFilip Krzywka <filip.krzywka@nokia.com>2019-04-10 09:34:24 +0000
commit4d76345d06ee7591d839723a82026f6d8e756c65 (patch)
tree4bbf6174d9ca95001aa1bc9b4b7e6345102feae4 /development/bin/dcae-topic.sh
parentd52444107a3c62c1027e35178b76645ceb4d2c4e (diff)
Update development scripts
Change-Id: I51c6f834ea6d47d055baab81d08eb7484eebef20 Issue-ID: DCAEGEN2-1399 Signed-off-by: Filip Krzywka <filip.krzywka@nokia.com>
Diffstat (limited to 'development/bin/dcae-topic.sh')
-rwxr-xr-xdevelopment/bin/dcae-topic.sh9
1 files changed, 6 insertions, 3 deletions
diff --git a/development/bin/dcae-topic.sh b/development/bin/dcae-topic.sh
index aefb1d0b..b4c2638d 100755
--- a/development/bin/dcae-topic.sh
+++ b/development/bin/dcae-topic.sh
@@ -20,8 +20,11 @@
set -euo pipefail
usage() {
- echo "Set dcae-app-simulator to start consuming messages from given topic (HV_VES_PERF3GPP by default)"
- echo "Usage: $0 [-h|--help] [-v|--verbose] [topic]"
+ echo "Set dcae-app-simulator to start consuming messages from given comma-separated topics (HV_VES_PERF3GPP by default)"
+ echo "Usage: $0 [-h|--help] [-v|--verbose] [topics]"
+ echo ""
+ echo "Example invocations:"
+ echo "./dcae-topic.sh FAULT_TOPIC,HEARTBEAT_TOPIC,HV_VES_PERF3GPP"
exit 1
}
@@ -62,7 +65,7 @@ source ${DEVELOPMENT_BIN_DIRECTORY}/constants.sh
TOPIC=${1:-HV_VES_PERF3GPP}
if [ -n "${VERBOSE+x}" ]; then
- echo "Requesting DCAE app running on ${DCAE_APP_ADDRESS} to consume messages from topic: ${TOPIC}"
+ echo "Requesting DCAE app running on ${DCAE_APP_ADDRESS} to consume messages from topics: ${TOPIC}"
fi
curl --request PUT ${DCAE_APP_ADDRESS}/configuration/topics -d ${TOPIC}