X-Git-Url: http://git.onelab.eu/?p=myslice.git;a=blobdiff_plain;f=portal%2Ftemplates%2Fslice-tab-experiment.html;h=1af566142bfc1613fd62118c25ea33dc05a62786;hp=9673ad6180b24a46e6563226bf0a79c3f0529bed;hb=638bef2312f862f8e148c9ad5a4675316c1ca961;hpb=afc24b88a1004e1015b2699495373561527e16d6 diff --git a/portal/templates/slice-tab-experiment.html b/portal/templates/slice-tab-experiment.html index 9673ad61..1af56614 100644 --- a/portal/templates/slice-tab-experiment.html +++ b/portal/templates/slice-tab-experiment.html @@ -11,14 +11,11 @@ function is_finished(len_platforms, pf_status){ $(document).ready(function() { var platform_status = Array(); var platform_empty = Array(); - console.log('{{platforms}}'); {% for platform in platforms %} // /sfa/Describe?hrn=onelab.upmc.projectx.slicex&platform[]={{platform}}&type=slice $.post("/sfa/Describe",{'hrn':'{{slicename}}', 'type':'slice', 'platform':['{{platform}}']}, function( data ) { - console.log(data); if('parsed' in data['{{platform}}'] && 'rspec' in data['{{platform}}']['parsed']){ rspec = data['{{platform}}']['parsed']['rspec']; - console.log(rspec); if('node' in rspec){ if(rspec['node'] instanceof Array) { jQuery.each( rspec['node'], function( i, node ) { @@ -27,6 +24,8 @@ $(document).ready(function() { }else{ render_node('{{platform}}',rspec['node']); } + }else{ + platform_empty.push('{{platform}}'); } }else{ platform_empty.push('{{platform}}'); @@ -34,7 +33,7 @@ $(document).ready(function() { platform_status.push('{{platform}}'); if(is_finished({{len_platforms}},platform_status.length)){ $("#loading").hide(); - if(platform_empty.length > 0){ + if(platform_empty.length == {{len_platforms}}){ $("#warning_message").show(); } } @@ -42,7 +41,6 @@ $(document).ready(function() { {% endfor %} }); -

How to access your reserved resources?

@@ -91,15 +89,12 @@ Please add resources to your slice from the left tab $(document).ready(function() { $.post("/initscript/get/",{'slice_hrn':'{{slicename}}'}, function( data ) { - console.log(data); jQuery('#initscript_code').val(data['initscript_code']); }); }); function deploy(slice_hrn){ - console.log("deploy = "+slice_hrn); var initscript_code = jQuery('#initscript_code').val() $.post("/initscript/update/",{'slice_hrn':slice_hrn, 'initscript_code':initscript_code}, function( data ) { - console.log(data); if (data['ret'] == 0) { mysliceAlert('Success: initscript deployed','success', true); }else{ @@ -109,9 +104,7 @@ Please add resources to your slice from the left tab NITOS basic tutorial + The complete tutorial on FIT NITOS nodes: + basic tutorial

OMF based experiments' tutorials are available here.

To learn more about OMF, please click here.