2 # $1 is the IP address of the buscontroller
4 # INITIALIZE: dmaap object
5 echo $'\nInitializing /dmaap endpoint'
10 "topicNsRoot": "topic.org.onap.dmaap",
11 "drProvUrl": "https://dmaap-dr-prov:8443",
13 "bridgeAdminTopic": "MM_AGENT_PROV"
17 curl -v -X POST -d @${JSON} -H "Content-Type: application/json" http://$1:8080/webapi/dmaap
19 # INITIALIZE: dcaeLocation object
20 echo $'\nInitializing /dcaeLocations endpoint'
21 JSON=/tmp/dcaeLocation.json
24 "dcaeLocationName": "csit-pmmapper",
25 "dcaeLayer": "central-cloud",
30 curl -v -X POST -d @${JSON} -H "Content-Type: application/json" http://$1:8080/webapi/dcaeLocations
32 # INITIALIZE: MR object in 1 site
33 echo $'\nInitializing /mr_clusters endpoint'
34 DMAAP=$(docker ps -a -q --filter="name=dmaap_1")
35 DMAAP_MR_IP=$(docker inspect --format='{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' $DMAAP)
39 "dcaeLocationName": "csit-pmmapper",
40 "fqdn": "${DMAAP_MR_IP}",
41 "topicProtocol" : "http",
45 curl -v -X POST -d @${JSON} -H "Content-Type: application/json" http://$1:8080/webapi/mr_clusters
48 echo $'\nInitializing /feeds endpoint'
52 "feedName":"pmmapper",
54 "feedDescription":"PM Mapper Feed",
56 "asprClassification": "unclassified",
59 "dcaeLocationName": "csit-pmmapper",
61 "lastMod": "2015-01-01T15:00:00.000Z",
64 "username": "pmmapper",
70 curl -v -X POST -d @${JSON} -H "Content-Type: application/json" http://$1:8080/webapi/feeds
73 echo $'\nInitializing /topic endpoint'
78 "topicDescription":"PM Mapper - VES Event",
82 curl -v -X POST -d @${JSON} -H "Content-Type: application/json" http://$1:8080/webapi/topics
85 echo $'\nInitializing /mr_clients endpoint'
86 JSON=/tmp/mrclients.json
89 "fqtn": "topic.org.onap.dmaap.mr.test1",
90 "dcaeLocationName": "csit-pmmapper",
91 "clientRole": "org.onap.dmaap.mr.topic",
92 "action": [ "pub", "view" ]
95 curl -v -X POST -d @${JSON} -H "Content-Type: application/json" http://$1:8080/webapi/mr_clients