Commit 6b75db71 authored by Leigh Stoller's avatar Leigh Stoller

Replace profile.py

parent e0db5103
......@@ -16,6 +16,29 @@ pc = portal.Context()
# Create a Request object to start building the RSpec.
request = pc.makeRequestRSpec()
# A list of endpoint sites.
endpoints = [
('urn:publicid:IDN+test1.powderwireless.net+authority+cm',
"Flux Area Prototype"),
('urn:publicid:IDN+bookstore.powderwireless.net+authority+cm',
"Bookstore"),
('urn:publicid:IDN+humanities.powderwireless.net+authority+cm',
"Humanities"),
('urn:publicid:IDN+law73.powderwireless.net+authority+cm',
"Law"),
('urn:publicid:IDN+madsen.powderwireless.net+authority+cm',
"Madsen"),
('urn:publicid:IDN+moran.powderwireless.net+authority+cm',
"Moran"),
('urn:publicid:IDN+sagepoint.powderwireless.net+authority+cm',
"Sagepoint"),
('urn:publicid:IDN+web.powderwireless.net+authority+cm',
"Warnock Engineering Building")]
# Request an endpoint
pc.defineParameter("endpoint", "Fixed Endpoint",
portal.ParameterType.STRING, endpoints[0], endpoints)
# Request a specific node that we know has a radio.
pc.defineParameter("node_id", "Node ID",
portal.ParameterType.STRING, "nuc2")
......@@ -68,6 +91,7 @@ pc.verifyParameters()
node = request.RawPC("node")
if params.node_id != "any":
node.component_id = params.node_id
node.component_manager_id = params.endpoint
# The Ettus tools run on Ubuntu18 only.
node.disk_image = "urn:publicid:IDN+emulab.net+image+emulab-ops//UBUNTU18-64-STD"
node.addService(pg.Execute(shell="sh", command="sudo /bin/bash /local/repository/install.sh"))
......@@ -91,3 +115,4 @@ for range in params.Spectrum:
# Print the RSpec to the enclosing page.
pc.printRequestRSpec(request)
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