$('table.dataTable').delegate('a.resource-info','click',function() {
var aPos = sTable.fnGetPosition( this.parentNode );
var aData = sTable.fnGetData( aPos[0] );
- //console.log(aData);
+ console.log(aData);
var index = {}
// XXX Loic @ Hardcoded !!! Maybe a loop over all fields would be better
} else {
var logo = resourceData['testbed'];
var resourceLocation = {
- 'longitude' : aData[13],
- 'latitude' : aData[23],
+ 'longitude' : aData[20],
+ 'latitude' : aData[17],
};
var coordinates = resourceLocation['latitude']+','+resourceLocation['longitude'];
+ console.log(coordinates);
}
var modal = $('#resource-info-modal');
modal.find('.modal-title').text(resourceData['testbed'] + ': ' +resourceData['hostname']);
table = modal.find('.modal-resource-info');
- table.html('<tr><td colspan="2"><img class="img-responsive" src="/static/img/testbeds/'+logo+'.png" alt="'+resourceData['facility']+' - '+resourceData['testbed']+'" /></td></tr>');
+ table.html('<tr><td colspan="2"><center><img class="img-responsive" src="/static/img/testbeds/'+logo+'.png" alt="'+resourceData['facility']+' - '+resourceData['testbed']+'" /></center></td></tr>');
for (var j in resourceData) {
table.append('<tr><td>' + j + '</td><td>' + resourceData[j] + '</td></tr>');
}
function render_node(platform, node){
- console.log(platform,node);
+ //console.log(platform,node);
nitos = false;
if('@component_manager_id' in node){
// urn:publicid:IDN+ple+authority+cm
elm = document.getElementById(testbed);
newElement = document.createElement('p');
if('services' in node && 'login' in node['services']){
- console.log(node['services']['login']);
+ //console.log(node['services']['login']);
login = node['services']['login'];
// TODO: Check if this login info has already been printed or not
// Ex: IoT-Lab 1 ssh gateway per site, but info is per node in the RSpec
$(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 ) {
}else{
render_node('{{platform}}',rspec['node']);
}
+ }else{
+ platform_empty.push('{{platform}}');
}
}else{
platform_empty.push('{{platform}}');
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();
}
}
{% endfor %}
});
</script>
-
<div class="col-md-10 col-md-offset-1">
<div id="access">
<h2>How to access your reserved resources?</h2>
<script type="text/javascript">
$(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{
});
}
function del(slice_hrn){
- console.log("delete");
$.post("/initscript/delete/",{'slice_hrn':slice_hrn}, function( data ) {
- console.log(data);
if (data['ret'] == 0) {
mysliceAlert('Success: initscript deleted','success', true);
jQuery('#initscript_code').val('');
</p>
<p>
- The complete tutorial on NITOS nodes:
- <a target="_blank" href="http://nitlab.inf.uth.gr/NITlab/index.php/testbed/instructions/basic-tutorial">NITOS basic tutorial</a>
+ The complete tutorial on FIT NITOS nodes:
+ <a target="_blank" href="http://doc.onelab.eu/nitos.html">basic tutorial</a>
</p>
<p>OMF based experiments' tutorials are available <a href="http://nitlab.inf.uth.gr/NITlab/index.php/testbed/instructions/omf-tutorials-scenarios" target="_blank">here.</a></p>
<p>To learn more about OMF, please click <a href="http://omf.mytestbed.net/projects/omf/wiki/OMF_Main_Page" target="_blank">here.</a></p>