Change service name to sdnc-compatible 81/20881/1
authorHuabingZhao <zhao.huabing@zte.com.cn>
Fri, 27 Oct 2017 02:19:59 +0000 (10:19 +0800)
committerHuabingZhao <zhao.huabing@zte.com.cn>
Fri, 27 Oct 2017 02:20:04 +0000 (10:20 +0800)
Register two services for SDNC,one for the standard url, one for the compatible url.

http://$MSB_IP/api/sdnc/v1/restconf/
http://$MSB_IP/restconf/

Issue-Id: MSB-83
Change-Id: Ie3cd82bee895db3d7e3ccaa3a5b84f1e3bd8c62a
Signed-off-by: HuabingZhao <zhao.huabing@zte.com.cn>
boot/msb_vm_init.sh

index b80267c..fbbb7c5 100644 (file)
@@ -85,7 +85,7 @@ curl -X POST -H "Content-Type: application/json" -d '{"serviceName": "sdc-deprec
 #sdnc
 curl -X POST -H "Content-Type: application/json" -d '{"serviceName": "sdnc", "version": "v1", "url": "/","protocol": "REST",  "nodes": [ {"ip": "'$SDNC_IP'","port": "8282"}]}' "http://$OPENO_IP:10081/api/microservices/v1/services"
 
-curl -X POST -H "Content-Type: application/json" -d '{"serviceName": "sdnc", "version": "v1", "url": "/restconf","path": "/restconf","protocol": "REST",  "nodes": [ {"ip": "'$SDNC_IP'","port": "8282"}]}' "http://$OPENO_IP:10081/api/microservices/v1/services"
+curl -X POST -H "Content-Type: application/json" -d '{"serviceName": "sdnc-compatible", "version": "v1", "url": "/restconf","path": "/restconf","protocol": "REST",  "nodes": [ {"ip": "'$SDNC_IP'","port": "8282"}]}' "http://$OPENO_IP:10081/api/microservices/v1/services"
 
 #multi-vim
 curl -X POST -H "Content-Type: application/json" -d '{"serviceName": "multicloud", "version": "v0", "url": "/api/multicloud/v0","protocol": "REST",  "nodes": [ {"ip": "'$OPENO_IP'","port": "9001"}]}' "http://$OPENO_IP:10081/api/microservices/v1/services"