changed column width
[unfold.git] / portal / templates / slice-tab-experiment.html
index 4d58fe5..2fb051c 100644 (file)
@@ -1,6 +1,4 @@
-<div class="col-md-2">
-</div>
-<div class="col-md-8">
+<div class="col-md-10 col-md-offset-1">
        <h2>How to access your slice</h2>
        <h3>PlanetLab Europe</h3>
        
@@ -8,14 +6,19 @@
                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>
+       {%if ple_resources%}
        <p class="command">
-               $ ssh converted_slice_name@planetlab-resource.hostname.com
-       </p>
-       <p>You need to convert your typical slicename into a specific format in order to do SSH. An example below will demonstrate the conversion:</p>
-       <p class="command">
-               Typical slice_name = onelab.upmc.mytestslice<br>
-               converted_slice_name = onelab8upmc_mytestslice
-       </p>
+       {%for resource in ple_resources %}
+               $ ssh {{ple_slicename}}@{{resource}}<br>
+       {%endfor%}
+       </p>
+       {%else%}
+               <p><b>NOTE:</b> You did not reserve any PLE resources yet. Once reserved, you will get the actual SSH command. A specimen command is given below:</p>
+               <p class="command">
+               $ ssh {{ple_slicename}}@planetlab-resource.hostname.com<br>
+               </p>
+       {%endif%}
+       <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>Please note that the first '.' is replaced by number 8 and the rest of the dot/s are replaced by underscore/s.</p>
        <p>
                Be aware that after you reserve a PlanetLab Europe resource your slice will be deployed with a delay of about 15 minutes, 
@@ -28,7 +31,7 @@
                the following command:
        </p>
        <p class="command">
-               ssh onelab_username@fit3-dev.inrialpes.fr
+               ssh {{username}}@fit3-dev.inrialpes.fr
        </p>
        
        <h3>NITOS</h3>
@@ -38,7 +41,7 @@
         The NITOS server address is nitlab.inf.uth.gr, so to connect to the NITOS server:
        </p>
        <p class="command">
-       $ ssh your_slice_name@nitlab.inf.uth.gr
+       $ ssh {{slicename}}@nitlab.inf.uth.gr
        </p>
        
        <p>
        <p>In addition to the main OMF software, this site also hosts OMF sub-projects addressing various related aspects of a testbed's control, measurement, and management.</p>
        <p>More Info: <a href="http://mytestbed.net/projects/omf" target="_blank">http://mytestbed.net/projects/omf</a></p>
 </div>
-<div class="col-md-2">
-</div>