rajendrajaiswal | 8f0afd8 | 2019-02-11 12:30:26 +0000 | [diff] [blame] | 1 | #!/bin/bash |
2 | |||||
3 | # $1 is the IP address of the buscontroller | ||||
4 | # INITIALIZE: dmaap object | ||||
5 | JSON=/tmp/prov.dmaap | ||||
6 | cat << EOF > $JSON | ||||
7 | { | ||||
8 | "version": "1", | ||||
9 | "topicNsRoot": "org.onap.dmaap", | ||||
10 | "drProvUrl": "https://dmaap-dr-prov:8443", | ||||
11 | "dmaapName": "onapCSIT", | ||||
12 | "bridgeAdminTopic": "MM_AGENT_PROV" | ||||
13 | |||||
14 | } | ||||
15 | EOF | ||||
16 | |||||
17 | echo "Initializing /dmaap endpoint" | ||||
18 | curl -v -X POST -d @${JSON} -H "Content-Type: application/json" http://$1:8080/webapi/dmaap |