Commit af6ac141 authored by Leigh Stoller's avatar Leigh Stoller

Replace profile.py

parent 07cca9f5
......@@ -18,6 +18,12 @@ pc = portal.Context()
# Create a Request object to start building the RSpec.
request = pc.makeRequestRSpec()
# A list of clusters
clusters = [
('Any', 'Any')
('urn:publicid:IDN+emulab.net+authority+cm', 'Emulab')
('urn:publicid:IDN+utah.cloudlab.us+authority+cm', 'Cloudlab Utah')]
# A list of endpoint sites.
endpoints = [
('urn:publicid:IDN+test1.powderwireless.net+authority+cm',
......@@ -75,9 +81,11 @@ pc.defineParameter("iface", "Interface",
pc.defineParameter("phystype","Compute Type",
portal.ParameterType.NODETYPE, "",
longDescription="Node type of your computing resources.")
pc.defineParameter("n", "Count",
pc.defineParameter("n", "Compute Count",
portal.ParameterType.INTEGER, 0,
longDescription="How many compute nodes do you need.")
pc.defineParameter("cluster", "Compute Cluster",
portal.ParameterType.STRING, clusters[0], clusters)
# Request a BS radio
pc.defineParameter("radio", "BS Radio",
......@@ -180,6 +188,9 @@ while params.n:
node = request.RawPC("comnode" + str(params.n - 1))
node.setUseTypeDefaultImage()
node.hardware_type = params.phystype
if params.cluster != "Any":
node.component_manager_id = params.cluster
pass
params.n = params.n - 1;
pass
......
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