From: Huabing Zhao Date: Fri, 30 Aug 2019 08:30:53 +0000 (+0800) Subject: Allow using MSB GUI to register https service X-Git-Tag: 1.2.6~9 X-Git-Url: https://gerrit.onap.org/r/gitweb?p=msb%2Fdiscovery.git;a=commitdiff_plain;h=1794401f46baf48082acb300aa12cb8e0c1a9a49 Allow using MSB GUI to register https service Issue-ID: MSB-198 Signed-off-by: Huabing Zhao Change-Id: I662a5bd2343790ffdf0d9838f3c661c482d95077 --- diff --git a/discovery-ui/src/main/resources/iui/microservices/js/serviceController.js b/discovery-ui/src/main/resources/iui/microservices/js/serviceController.js index b8afc0e..bf112bf 100644 --- a/discovery-ui/src/main/resources/iui/microservices/js/serviceController.js +++ b/discovery-ui/src/main/resources/iui/microservices/js/serviceController.js @@ -91,7 +91,8 @@ var vm = avalon namespace:"", network_plane_type:"", host:"", - path:"" + path:"", + enable_ssl:[] }, nodeInfo:{ ip:"", @@ -193,6 +194,7 @@ var vm = avalon vm.msbRouteInfo.network_plane_type=""; vm.msbRouteInfo.host=""; vm.msbRouteInfo.path=""; + vm.msbRouteInfo.enable_ssl=[]; vm.server_rtn.warning_block=false; @@ -250,7 +252,12 @@ var vm = avalon vm.msbRouteInfo.network_plane_type=msbRouteInfo.network_plane_type; vm.msbRouteInfo.host=msbRouteInfo.host; vm.msbRouteInfo.path=msbRouteInfo.path; - + if (msbRouteInfo.enable_ssl == true){ + vm.msbRouteInfo.enable_ssl=["true"]; + }else{ + vm.msbRouteInfo.enable_ssl=[]; + } + $("#labels").val(msbRouteInfo.labels); $('#labels').on('tokenfield:createdtoken', function (e) { var re = /\S+:\S+/ @@ -879,7 +886,11 @@ var vm = avalon //var newServiceName=(vm.msbRouteInfo.protocol=="UI"?("IUI_"+vm.msbRouteInfo.serviceName):vm.msbRouteInfo.serviceName); var newServiceName=vm.msbRouteInfo.serviceName; - + var enable_ssl = false; + if (vm.msbRouteInfo.enable_ssl.length > 0){ + enable_ssl = true; + } + var data= JSON.stringify({ "serviceName": newServiceName, @@ -894,6 +905,7 @@ var vm = avalon "network_plane_type":vm.msbRouteInfo.network_plane_type, "host":vm.msbRouteInfo.host, "path":vm.msbRouteInfo.path, + "enable_ssl":enable_ssl, "labels": labelArray, "metadata":metadata }); diff --git a/discovery-ui/src/main/resources/iui/microservices/serviceMng.html b/discovery-ui/src/main/resources/iui/microservices/serviceMng.html index 520d263..1cbcd07 100644 --- a/discovery-ui/src/main/resources/iui/microservices/serviceMng.html +++ b/discovery-ui/src/main/resources/iui/microservices/serviceMng.html @@ -538,18 +538,15 @@
-
-
-
@@ -558,19 +555,24 @@
-
-
- -
- - - +
+
+ +
+ + + +
+
+