aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHuabingZhao <zhao.huabing@zte.com.cn>2017-10-27 10:19:59 +0800
committerHuabingZhao <zhao.huabing@zte.com.cn>2017-10-27 10:20:04 +0800
commitce2f7332001dbd0a575b0debd17ff08295ae72ba (patch)
treeb238ca121c22b2e0d910b678b0151246f22b2602
parent0c7f29ae19970a0161573af7e591be6f11c27e1d (diff)
Change service name to sdnc-compatible
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>
-rw-r--r--boot/msb_vm_init.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/boot/msb_vm_init.sh b/boot/msb_vm_init.sh
index b80267cd..fbbb7c5f 100644
--- a/boot/msb_vm_init.sh
+++ b/boot/msb_vm_init.sh
@@ -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"