diff options
author | rajendrajaiswal <rajendra.jaiswal@ericsson.com> | 2019-02-11 12:30:26 +0000 |
---|---|---|
committer | root <rajendra.jaiswal@ericsson.com> | 2019-02-11 16:15:37 +0000 |
commit | 8f0afd8a099200fb7001ded306dceb015a63517b (patch) | |
tree | 598a735f3ca7d99b58f2663dae982676a2aa69b1 /plans/dcaegen2-pmmapper/pmmapper/dmaapbc.sh | |
parent | 9c67e5814d6b4a5e5677ee3f8eb4393f4f1a326c (diff) |
Updated Test and Setup files for PM Mapper
Change-Id: I8dd4d60a6b54178575363f494d8ca7565306a514
Issue-ID: INT-863
Signed-off-by: Rajendra Jaiswal <rajendra.jaiswal@ericsson.com>
Diffstat (limited to 'plans/dcaegen2-pmmapper/pmmapper/dmaapbc.sh')
-rwxr-xr-x | plans/dcaegen2-pmmapper/pmmapper/dmaapbc.sh | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/plans/dcaegen2-pmmapper/pmmapper/dmaapbc.sh b/plans/dcaegen2-pmmapper/pmmapper/dmaapbc.sh new file mode 100755 index 00000000..ffb1686c --- /dev/null +++ b/plans/dcaegen2-pmmapper/pmmapper/dmaapbc.sh @@ -0,0 +1,18 @@ +#!/bin/bash + +# $1 is the IP address of the buscontroller +# INITIALIZE: dmaap object +JSON=/tmp/prov.dmaap +cat << EOF > $JSON +{ +"version": "1", +"topicNsRoot": "org.onap.dmaap", +"drProvUrl": "https://dmaap-dr-prov:8443", +"dmaapName": "onapCSIT", +"bridgeAdminTopic": "MM_AGENT_PROV" + +} +EOF + +echo "Initializing /dmaap endpoint" +curl -v -X POST -d @${JSON} -H "Content-Type: application/json" http://$1:8080/webapi/dmaap
\ No newline at end of file |