aboutsummaryrefslogtreecommitdiffstats
path: root/dcae_dmaapbc_webapp/src/main/webapp/app/fusion/ase/scripts/services.js
diff options
context:
space:
mode:
authorChristopher Lott (cl778h) <clott@research.att.com>2017-05-09 14:24:20 -0400
committerChristopher Lott (cl778h) <clott@research.att.com>2017-05-09 14:44:09 -0400
commite2aefda183de4f1c1256d97f7ce09f8bee5477db (patch)
tree4b0eaf3f153df90591711daf081e63a8b20ace74 /dcae_dmaapbc_webapp/src/main/webapp/app/fusion/ase/scripts/services.js
parent472635713b7471b300a988db7e907bab0119eaee (diff)
[ONAP-rebase] Rebase as 1.1.0-SNAPSHOT
Consolidate into a single maven project; no more separate model and client jars. Change-Id: Ibbba982250b74c0dfd09ee1c65c0fb6c158dd632 Signed-off-by: Christopher Lott <cl778h@att.com> Signed-off-by: Christopher Lott (cl778h) <clott@research.att.com>
Diffstat (limited to 'dcae_dmaapbc_webapp/src/main/webapp/app/fusion/ase/scripts/services.js')
-rw-r--r--dcae_dmaapbc_webapp/src/main/webapp/app/fusion/ase/scripts/services.js86
1 files changed, 0 insertions, 86 deletions
diff --git a/dcae_dmaapbc_webapp/src/main/webapp/app/fusion/ase/scripts/services.js b/dcae_dmaapbc_webapp/src/main/webapp/app/fusion/ase/scripts/services.js
deleted file mode 100644
index 6abcc98..0000000
--- a/dcae_dmaapbc_webapp/src/main/webapp/app/fusion/ase/scripts/services.js
+++ /dev/null
@@ -1,86 +0,0 @@
-/* ---------------------------------------------------------------------------------------------- */
-/*
-* This file is a work in progress, update this section when complete to give a better description.
-* Currently the functions here work with the services and will work with getting the information
-* from the AJAX Call which will provide JSON/YMAL object of the information required to build the service
-* selection.
-*
-*
-*/
-
-/*
-* This Function currently builds the table for the accordian.
-* when complete this will create the complete section of how
-* a Domain, Serrvice and UE are selected from the ASE tool.
-*
-*/
-var domains = [];
-var elements = [];
-var networkMap =[];
-var isFirstRun = true;
-var defaultDomain = "RAN";
-var defaultElement = "com.ecomp.trinity.ran.enodeb";
-
-
-function buildNetworkMap() {
-
-
- $.get(ase.elementsFile, {
- //$.post('http://demeter.homer.ecomp.com:50180/d2sim/ase.htm?action=element', {
- //$.post('ase.htm?action=element', {
- }, function(data) {
- var yamlObject = jsyaml.load(data);
- networkMap = yamlObject.elementsList;
- buildDomain(networkMap);
- });
-
-
-}
-
-
-function buildDomain(networkMap){
- if ( domains.length == 0 ) {
- for ( var i = 0; i < networkMap.length; i++ ) {
- if ( domains.indexOf(networkMap[i].enclosingDomain) < 0 ) {
- domains.push(networkMap[i].enclosingDomain);
- }
- }
- }
- for ( var d = 0; d < domains.length; d++ ) {
- $('#domains').append('<option value="' + domains[d] +'">' + domains[d] + '</option>');
- }
- $("#elements").prop('disabled', true);
- $('#domains').change(function(){
- if ( $('#domains').val() == 'na' ) { return false; }
- buildElements($('#domains').val());
- });
- $('#domains option[value|="'+ defaultDomain +'"]').prop("selected",true).change();
-
-}
-
-function buildElements(domain){
- elements = [];
- $('#elements').html('<option value="na">-- Select Element --</option>');
- for ( var i = 0; i < networkMap.length; i++ ) {
- if ( networkMap[i].enclosingDomain == domain ) {
- $('#elements').append('<option value="' + networkMap[i].tosca_id +'">' + networkMap[i].displayShortname + '</option>');
- elements.push(networkMap[i].displayShortname);
- }
- }
- $("#elements").prop('disabled', false);
- $('#elements').change(function(){
- if ( $('#elements').val() == 'na' ) { return false; }
- buildNode($('#elements').val(),$('#elements option:selected').text());
- });
- if ( isFirstRun ) {
- $('#elements option[value|="'+ defaultElement +'"]').prop("selected",true);
- isFirstRun = false;
- }
-
-}
-
-function buildNode(tosca_id,name){
- $('#element').attr('taska_id',tosca_id);
- $('#shortName').html(name);
-}
-