diff options
-rw-r--r-- | docs/index.rst | 38 | ||||
-rw-r--r-- | src/main/resources/META-INF/resources/designer/scripts/aOnBoot.js | 87 |
2 files changed, 66 insertions, 59 deletions
diff --git a/docs/index.rst b/docs/index.rst index d0f004b58..6058420e8 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -1,3 +1,7 @@ + + + + .. This work is licensed under a Creative Commons Attribution 4.0 International License. .. http://creativecommons.org/licenses/by/4.0 .. Copyright © 2017 AT&T Intellectual Property. All rights reserved. @@ -17,7 +21,22 @@ At a higher level, CLAMP is about supporting and managing the broad operational .. toctree:: - :maxdepth: 1 +:maxdepth: 1 + +Offered APIs +------------ +CLAMP offers the following API's: +-) HealthCheck + URL: http://<host>:8080/restservices/clds/v1/clds/healthcheck + if in good health it will return OK: "HTTP/1.1 200", and the following json string content:{"healthCheckComponent":"CLDS-APP","healthCheckStatus":"UP","description":"OK"} + + +Consumed APIs +------------- +CLAMP uses the API's exposed by the following ONAP components: +-) SDC : Rest based interface exposed by the SDC, Distribution of service to DCAE +-) DCAE: Rest based interface exposed by DCAE, Common Controller Framework, DCAE microservices onboarded (TCA, Stringmatch, Holmes (optional)) +-) Policy: Rest based interface (the Policy team provide a "jar" to handle the communication), both XACML and Drools PDP, APIs to App-C/VF-C/SDN-C Delivery @@ -114,7 +133,7 @@ Administration -------------- A user can access CLAMP UI at the following URL : http://localhost:8080/designer/index.html. - +(in this URL 'localhost' must be replaced by the actual host where CLAMP has been installed if it is not your current localhost) Default username : admin Default password : password @@ -124,5 +143,18 @@ Human Interfaces .. Basic info on the interface type, ports/protocols provided over, etc. User Interface (CLAMP Designer) - serve to configure control loop +The following actions are done using the UI: + +• Design a control loop flow by selecting a predefined template from a list + (a template is an orchestration chain of Micro-services, so the template defines how the micro-services of the control loop are chained together) +• Give value to the configuration the parameters of each micro-service of the control loop +• Select the service and VNF(of that service) to which the control loop will be attached +• Configure the operational policy(the actual operation resulting from the control loop) +• Generate the “TOSCA” blueprint that will be used by DCAE to start the control loop + (The blueprint will be sent first to SDC and SDC will publish it to DCAE) +• Trigger the deployment of the Control loop in DCAE +• Control (start/stop) the operation of the control loop in DCAE + + -HealthCheck API - serve to verify CLAMP status
\ No newline at end of file +HealthCheck API - serve to verify CLAMP status (see offered API's section)
\ No newline at end of file diff --git a/src/main/resources/META-INF/resources/designer/scripts/aOnBoot.js b/src/main/resources/META-INF/resources/designer/scripts/aOnBoot.js index 89807d627..01a39b62d 100644 --- a/src/main/resources/META-INF/resources/designer/scripts/aOnBoot.js +++ b/src/main/resources/META-INF/resources/designer/scripts/aOnBoot.js @@ -112,62 +112,37 @@ function loadPropertyWindow(type) { } function setMultiSelect() { - $("select").each(function(index, mySelect) { - if ($(mySelect).parents(".multiselect-native-select") && - $(mySelect).parents(".multiselect-native-select").length < 1) { - if (!$(mySelect).attr("multiple")) { - if ($(mySelect).attr("enableFilter")) { - $(mySelect).multiselect({ - numberDisplayed: 1, - maxHeight: 200 - }); - } else { - $(mySelect).multiselect({ - numberDisplayed: 1, - enableFiltering: true, - maxHeight: 200 - }); - } - - } else { - $(mySelect).multiselect({ - numberDisplayed: 1, - includeSelectAllOption: true, - enableFiltering: true, - maxHeight: 200, - enableCaseInsensitiveFiltering: true - }); - } - - } else if ($(mySelect).parents(".multiselect-native-select") && - $(mySelect).parents(".multiselect-native-select").length > 0) { - var selectDrop = $(mySelect).parent(".multiselect-native-select").find("select"); - $(mySelect).parent(".multiselect-native-select").parent().html(selectDrop); - if (!$(mySelect).attr("multiple")) { - if ($(mySelect).attr("enableFilter")) { - $(mySelect).multiselect({ - numberDisplayed: 1, - maxHeight: 200 - }); - } else { - $(mySelect).multiselect({ - numberDisplayed: 1, - enableFiltering: true, - maxHeight: 200 - }); - } - } else { - $(mySelect).multiselect({ - numberDisplayed: 1, - includeSelectAllOption: true, - enableFiltering: true, - maxHeight: 200, - enableCaseInsensitiveFiltering: true - }); - } - } - }); - //refeshMultiSelect(); + $("select").each(function(index, mySelect) { + + var mySelectObj = $(mySelect); + if (! mySelectObj.parents(".multiselect-native-select")) { + // keep native for this one + return; + } + + if (mySelectObj.parents(".multiselect-native-select").length > 0) { + var selectDrop = mySelectObj.parent(".multiselect-native-select").find("select"); + mySelectObj.parent(".multiselect-native-select").parent().html(selectDrop); + } + + var options = { + numberDisplayed: 1, + maxHeight: 200 + }; + + if (mySelectObj.attr("multiple") + && mySelectObj.attr("multiple") != 'false') { + options.includeSelectAllOption = true; + } + + if (mySelectObj.attr("enableFilter") + && mySelectObj.attr("enableFilter") != 'false') { + options.enableCaseInsensitiveFiltering = true; + options.enableFiltering = true; + } + + mySelectObj.multiselect(options); + }); } function loadSharedPropertyByService(onChangeUUID, refresh, callBack) { |