c.setopt(c.URL, str(restURL))
c.setopt(c.HTTPGET, 0)
c.setopt(c.WRITEFUNCTION, rest_buffer.write)
c.setopt(c.URL, str(restURL))
c.setopt(c.HTTPGET, 0)
c.setopt(c.WRITEFUNCTION, rest_buffer.write)
url += 'Category=Shards,name=' + names[i]
url += '-shard-' + shardName + '-config,type=DistributedConfigDatastore'
try:
url += 'Category=Shards,name=' + names[i]
url += '-shard-' + shardName + '-config,type=DistributedConfigDatastore'
try:
try:
controllers = data["cluster"]["controllers"]
shards_to_exclude = data["cluster"]["shards_to_exclude"]
try:
controllers = data["cluster"]["controllers"]
shards_to_exclude = data["cluster"]["shards_to_exclude"]
for controller in controllers:
url = "http://" + controller["ip"] + ":" + controller["port"] + "/jolokia/read/org.opendaylight.controller:"
url += "Category=ShardManager,name=shard-manager-config,type=DistributedConfigDatastore"
for controller in controllers:
url = "http://" + controller["ip"] + ":" + controller["port"] + "/jolokia/read/org.opendaylight.controller:"
url += "Category=ShardManager,name=shard-manager-config,type=DistributedConfigDatastore"