Commit 7dec11be authored by Leigh Stoller's avatar Leigh Stoller

Update profile.py

parent 4616946f
......@@ -26,19 +26,6 @@ pc.defineParameter("node_id", "Node ID",
# And a specific interface on that node,
pc.defineParameter("iface", "Interface",
portal.ParameterType.STRING, "rf0")
imageList = [
('default', 'Default Image'),
('urn:publicid:IDN+emulab.net+image+emulab-ops//UBUNTU18-64-STD', 'UBUNTU 18.04'),
('urn:publicid:IDN+emulab.net+image+emulab-ops//UBUNTU16-64-STD', 'UBUNTU 16.04'),
('urn:publicid:IDN+emulab.net+image+emulab-ops//CENTOS7-64-STD', 'CENTOS 7'),
('urn:publicid:IDN+emulab.net+image+emulab-ops//FBSD112-64-STD', 'FreeBSD 11.2')]
pc.defineParameter("osImage", "Select OS image",
portal.ParameterType.IMAGE,
imageList[0], imageList,
longDescription="Most clusters have this set of images, " +
"pick your favorite one.")
# Retrieve the values the user specifies during instantiation.
params = pc.bindParameters()
......@@ -54,11 +41,10 @@ pc.verifyParameters()
# Add a raw PC to the request
node = request.RawPC("node")
if params.osImage and params.osImage != "default":
node.disk_image = params.osImage
pass
if params.node_id != "any":
node.component_id = params.node_id
# 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"))
if Debugging == 0:
......
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