Add aai-search service in MSB init script 87/50387/1
authorYang Xu <yang.xu3@huawei.com>
Tue, 5 Jun 2018 15:34:32 +0000 (15:34 +0000)
committerYang Xu <yang.xu3@huawei.com>
Tue, 5 Jun 2018 15:37:51 +0000 (15:37 +0000)
Issue-ID: INT-521
Change-Id: I867220b0b427ada0b31e1fdd2b65120f506bed93
Signed-off-by: Yang Xu <yang.xu3@huawei.com>
boot/msb_vm_init.sh

index f84412b..938a3d6 100644 (file)
@@ -105,6 +105,8 @@ curl -X POST -H "Content-Type: application/json" -d '{"serviceName": "_aai-query
 #named-query
 curl -X POST -H "Content-Type: application/json" -d '{"serviceName": "aai-named-query", "url": "/aai/search","protocol": "REST", "enable_ssl":"true", "lb_policy":"ip_hash", "nodes": [ {"ip": "'$AAI_IP1'","port": "8446"}]}' "http://$OPENO_IP:10081/api/microservices/v1/services"
 curl -X POST -H "Content-Type: application/json" -d '{"serviceName": "_aai-named-query", "url": "/aai/search","path": "/aai/search","protocol": "REST", "enable_ssl":"true", "lb_policy":"ip_hash", "nodes": [ {"ip": "'$AAI_IP1'","port": "8446"}]}' "http://$OPENO_IP:10081/api/microservices/v1/services"
+#search
+curl -X POST -H "Content-Type: application/json" -d '{"serviceName": "aai-search", "version": "v11", "url": "/aai/v11/search","protocol": "REST", "enable_ssl":"True", "lb_policy":"round-robin","nodes": [ {"ip": "'$AAI_IP1'","port": "8443"}]}' "http://$OPENO_IP:10081/api/microservices/v1/services"
 
 
 # esr (not deployed together with AAI