Commit e3b078b2 authored by Robert Ricci's avatar Robert Ricci

Start converting regular CloudLab examples to the "linked" style

parent e6aa4443
......@@ -13,8 +13,8 @@ import geni.rspec.pg as rspec
# Create a Request object to start building the RSpec.
request = portal.context.makeRequestRSpec()
# Create a XenVM
# Add a XenVM (named "node") to the request
node = request.XenVM("node")
# Print the RSpec to the enclosing page.
# Write the request in RSpec format
portal.context.printRequestRSpec()
"""An example of constructing a profile with a single Xen VM.
Instructions:
Wait for the profile instance to start, and then log in to the VM via the
ssh port specified below. (Note that in this case, you will need to access
the VM through a high port on the physical host, since we have not requested
a public IP address for the VM itself.)
"""
# Import the Portal object.
import geni.portal as portal
import geni.rspec.pg as rspec
# Create a Request object to start building the RSpec.
request = portal.context.makeRequestRSpec()
# Add a XenVM (named "node") to the request
node = request.XenVM("node")
# Write the request in RSpec format
portal.context.printRequestRSpec()
......@@ -36,7 +36,7 @@ Its full documentation is online as
@section[#:tag "geni-lib-example-single-vm"]{A single XEN VM node}
@code-sample["geni-lib-single-vm.py"]
@profile-code-sample["PortalProfiles" "single-vm"]
This example demonstrates the two most important objects: the @bold{portal
context} (accessed through the @geni-lib["portal.context"] object in the
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment