aboutsummaryrefslogtreecommitdiffstats
path: root/plans/dcaegen2-pmmapper/pmmapper/dmaapbc.sh
diff options
context:
space:
mode:
Diffstat (limited to 'plans/dcaegen2-pmmapper/pmmapper/dmaapbc.sh')
-rwxr-xr-xplans/dcaegen2-pmmapper/pmmapper/dmaapbc.sh18
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