SDN-C Geo Config clustering
[sdnc/oam.git] / installation / sdnc / src / main / scripts / sdnc.cluster
index 35b6072..4f565ed 100755 (executable)
@@ -25,12 +25,12 @@ esac
 
 for pod_number in {0..2}
 do
-   curl  "http://localhost:3028$((${pod_number} + 1))" > /dev/null 2>&1
+   curl  "http://localhost:3026$((${pod_number} + 1))" > /dev/null 2>&1
    if [ "$?" = "7" ]; then
       continue 
    fi
 
-   VOTING_RESULT=`curl -u admin:admin -H "Content-Type: application/json" -H "Accept: application/json" -X GET http://localhost:3028$((${pod_number} + 1))/jolokia/read/org.opendaylight.controller:Category=Shards,name=member-$((${MEMBER_NUMBER} + ${pod_number}))-shard-default-config,type=DistributedConfigDatastore 2>/dev/null | jq '.value.Voting'` 
+   VOTING_RESULT=`curl -u admin:admin -H "Content-Type: application/json" -H "Accept: application/json" -X GET http://localhost:3026$((${pod_number} + 1))/jolokia/read/org.opendaylight.controller:Category=Shards,name=member-$((${MEMBER_NUMBER} + ${pod_number}))-shard-default-config,type=DistributedConfigDatastore 2>/dev/null | jq '.value.Voting'` 
 
    case $VOTING_RESULT in
    true)