diff options
author | rajendrajaiswal <rajendra.jaiswal@ericsson.com> | 2019-04-02 08:40:58 +0000 |
---|---|---|
committer | Rajendra Jaiswal <rajendra.jaiswal@ericsson.com> | 2019-04-03 16:12:41 +0000 |
commit | 37452e4b088d18cdd47e8c85628b86d95db390f2 (patch) | |
tree | 29380b86c094dfc8fca400938f67fcf2b60a545c /plans/dcaegen2-pmmapper/pmmapper/dmaapbc.sh | |
parent | 0937239c445e93e7ceabd27bcef313e0acfcd59b (diff) |
Added support for publishing PM Mapper
Change-Id: I69ae4d5d2a1844b559e664a863963cce01c8151d
Issue-ID: INT-863
Signed-off-by: rajendrajaiswal <rajendra.jaiswal@ericsson.com>
Diffstat (limited to 'plans/dcaegen2-pmmapper/pmmapper/dmaapbc.sh')
-rwxr-xr-x | plans/dcaegen2-pmmapper/pmmapper/dmaapbc.sh | 96 |
1 files changed, 0 insertions, 96 deletions
diff --git a/plans/dcaegen2-pmmapper/pmmapper/dmaapbc.sh b/plans/dcaegen2-pmmapper/pmmapper/dmaapbc.sh deleted file mode 100755 index 14302589..00000000 --- a/plans/dcaegen2-pmmapper/pmmapper/dmaapbc.sh +++ /dev/null @@ -1,96 +0,0 @@ -#!/bin/bash -# $1 is the IP address of the buscontroller - -# INITIALIZE: dmaap object -echo $'\nInitializing /dmaap endpoint' -JSON=/tmp/dmaap.json -cat << EOF > $JSON -{ -"version": "1", -"topicNsRoot": "topic.org.onap.dmaap", -"drProvUrl": "https://dmaap-dr-prov:8443", -"dmaapName": "mr", -"bridgeAdminTopic": "MM_AGENT_PROV" - -} -EOF -curl -v -X POST -d @${JSON} -H "Content-Type: application/json" http://$1:8080/webapi/dmaap - -# INITIALIZE: dcaeLocation object -echo $'\nInitializing /dcaeLocations endpoint' -JSON=/tmp/dcaeLocation.json -cat << EOF > $JSON -{ -"dcaeLocationName": "csit-pmmapper", -"dcaeLayer": "central-cloud", -"clli": "CSIT", -"zone": "zoneA" -} -EOF -curl -v -X POST -d @${JSON} -H "Content-Type: application/json" http://$1:8080/webapi/dcaeLocations - -# INITIALIZE: MR object in 1 site -echo $'\nInitializing /mr_clusters endpoint' -DMAAP=$(docker ps -a -q --filter="name=dmaap_1") -DMAAP_MR_IP=$(docker inspect --format='{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' $DMAAP) -JSON=/tmp/mr.json -cat << EOF > $JSON -{ -"dcaeLocationName": "csit-pmmapper", -"fqdn": "${DMAAP_MR_IP}", -"topicProtocol" : "http", -"topicPort": "3904" -} -EOF -curl -v -X POST -d @${JSON} -H "Content-Type: application/json" http://$1:8080/webapi/mr_clusters - -# CREATING: DR feed -echo $'\nInitializing /feeds endpoint' -JSON=/tmp/feed.json -cat << EOF > $JSON -{ -"feedName":"pmmapper", -"feedVersion": "1", -"feedDescription":"PM Mapper Feed", -"owner":"bulkpm", -"asprClassification": "unclassified", -"pubs": [ - { - "dcaeLocationName": "csit-pmmapper", - "feedId": "1", - "lastMod": "2015-01-01T15:00:00.000Z", - "pubId": "10", - "status": "EMPTY", - "username": "pmmapper", - "userpwd": "pmmapper" - } - ] -} -EOF -curl -v -X POST -d @${JSON} -H "Content-Type: application/json" http://$1:8080/webapi/feeds - -# CREATING: MR Topic -echo $'\nInitializing /topic endpoint' -JSON=/tmp/topic.json -cat << EOF > $JSON -{ -"topicName":"test1", -"topicDescription":"PM Mapper - VES Event", -"owner":"pmmapper" -} -EOF -curl -v -X POST -d @${JSON} -H "Content-Type: application/json" http://$1:8080/webapi/topics - -# CREATING: MR Client -echo $'\nInitializing /mr_clients endpoint' -JSON=/tmp/mrclients.json -cat << EOF > $JSON -{ -"fqtn": "topic.org.onap.dmaap.mr.test1", -"dcaeLocationName": "csit-pmmapper", -"clientRole": "org.onap.dmaap.mr.topic", -"action": [ "pub", "view" ] -} -EOF -curl -v -X POST -d @${JSON} -H "Content-Type: application/json" http://$1:8080/webapi/mr_clients -sleep 5
\ No newline at end of file |