summaryrefslogtreecommitdiffstats
path: root/boot/msb_vm_init.sh
diff options
context:
space:
mode:
authorYuanHu <yuan.hu1@zte.com.cn>2018-03-12 18:51:02 +0800
committerYuanHu <yuan.hu1@zte.com.cn>2018-03-12 18:51:02 +0800
commit89f43cc1354ff3822b7102500f8bd05c84cfbfe7 (patch)
treeae626374f53d2c59cf50ab60667d1f1bd3140a31 /boot/msb_vm_init.sh
parent0aac10bdbaac9972bd0fbf09fa6eee55223b42d5 (diff)
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 <yuan.hu1@zte.com.cn>
Diffstat (limited to 'boot/msb_vm_init.sh')
-rw-r--r--boot/msb_vm_init.sh2
1 files changed, 2 insertions, 0 deletions
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"