+ PlanetLab Europe resources are accessible directly via SSH. Your SSH public key is deployed automatically
+ on the reserved nodes. To access your slice on a resource just type the following command:
+ </p>
+ <p class="command">
+ {%for resource in ple_resources %}
+ <b>Resource</b><br>
+ $ ssh {{ple_slicename}}@{{resource}}<br>
+ {%endfor%}
+ </p>
+ <p><strong>NOTE:</strong> Your original slicename <b>{{slicename}}</b> has been converted to PlanetLab specific format <b>{{ple_slicename}}</b> in order to do SSH.</p>
+ <p>
+ Be aware that after you reserve a PlanetLab Europe resource your slice will be deployed with a delay of about 15 minutes,
+ after witch you will be able to access the resource.
+ </p>
+ <div id="initscript">
+ <div>
+ <h4>Init Script on PLE</h4>
+ <i>This bash script will be deployed on all PLE nodes of your slice</i>
+ </div>
+ <textarea style="width:100%; height:100px;" id="initscript_code"></textarea><br>
+ <button name="deploy" class="btn btn-success btn-sm" onclick="deploy('{{slicename}}');">Deploy</button>
+ <button name="delete" class="btn btn-danger btn-xs" onclick="del('{{slicename}}');">Delete</button>
+ </div>
+ <script type="text/javascript">
+ $(document).ready(function() {
+ $.post("/initscript/get/",{'slice_hrn':'onelab.upmc.express'}, 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{
+ mysliceAlert('Rest Error for: '+data.error,'warning', true);
+ }
+ //jQuery('#initscript_code').val(data['initscript_code']);
+ });
+ }
+ 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('');
+ }else{
+ mysliceAlert('Rest Error for: '+data.error,'warning', true);
+ }
+
+ });
+ }
+ </script>
+ <br>
+ {% endif %}
+
+ {% if iotlab_resources %}
+ <h3>FIT IoT-Lab</h3>
+ <p>FIT IoT-Lab resources are accessible directly via SSH and <a href="https://devgrenoble.senslab.info/testbed/" target="_blank">web GUI.</a>
+ To acess IoT-Lab resources using web GUI, use the same login and password of OneLab portal. To acess Iot-Lab resources using SSH type
+ the following command: