From 89f43cc1354ff3822b7102500f8bd05c84cfbfe7 Mon Sep 17 00:00:00 2001 From: YuanHu Date: Mon, 12 Mar 2018 18:51:02 +0800 Subject: Register Clamp API to MSB by RESTFul API. Register clamp API to MSB while deployed by OOM. Actual URL of Clamp: http://[CLAMP_IP]:[CLAMP_PORT]/restservices/clds/v1/* Published URL of MSB: http://[MSB_IP]:[MSB_PORT]/api/clamp/v1/* Issue-ID: CLAMP-95, OOM-230 Change-Id: Ic82aa5737269b52b1c96e6a2d70353d92b6c64e6 Signed-off-by: YuanHu --- boot/msb_vm_init.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/boot/msb_vm_init.sh b/boot/msb_vm_init.sh index 0a087b04..43f3ff96 100644 --- a/boot/msb_vm_init.sh +++ b/boot/msb_vm_init.sh @@ -132,3 +132,5 @@ curl -X POST -H "Content-Type: application/json" -d '{"serviceName": "usecaseui- curl -X POST -H "Content-Type: application/json" -d '{"serviceName": "usecaseui-ui", "version": "v1", "url": "/usecase-ui","path": "/iui/usecaseui","protocol": "UI", "nodes": [ {"ip": "'$OPENO_IP'","port": "8080"}]}' "http://$OPENO_IP:10081/api/microservices/v1/services" +# CLAMP +curl -X POST -H "Content-Type: application/json" -d '{"serviceName": "clamp", "version": "v1", "url": "/restservices/clds/v1","protocol": "REST", "visualRange":"1", "nodes": [ {"ip": "'$CLAMP_IP'","port": "8080"}]}' "http://$OPENO_IP:10081/api/microservices/v1/services" -- cgit 1.2.3-korg