Commit 23d715c4 authored by Leigh Stoller's avatar Leigh Stoller

Replace profile.py

parent 70d6f544
......@@ -37,6 +37,28 @@ endpoints = [
('urn:publicid:IDN+web.powderwireless.net+authority+cm',
"Warnock Engineering Building")]
# A list of radios on the Motherwhip.
radios = [
('None', "None"),
('cbrssdr1-bes', 'cbrssdr1-bes'),
('cbrssdr1-browning','cbrssdr1-browning'),
('cbrssdr1-dentistry','cbrssdr1-dentistry'),
('cbrssdr1-fm','cbrssdr1-fm'),
('cbrssdr1-honors','cbrssdr1-honors'),
('cbrssdr1-meb','cbrssdr1-meb'),
('cbrssdr1-smt','cbrssdr1-smt'),
('cbrssdr1-ustar','cbrssdr1-ustar'),
('cellsdr1-bes','cellsdr1-bes'),
('cellsdr1-browning','cellsdr1-browning'),
('cellsdr1-dentistry','cellsdr1-dentistry'),
('cellsdr1-fm','cellsdr1-fm'),
('cellsdr1-honors','cellsdr1-honors'),
('cellsdr1-meb','cellsdr1-meb'),
('cellsdr1-smt','cellsdr1-smt'),
('cellsdr1-ustar','cellsdr1-ustar'),
('mmimo1','mmimo1'),
]
# Request an endpoint
pc.defineParameter("endpoint", "Fixed Endpoint",
portal.ParameterType.STRING, endpoints[1], endpoints)
......@@ -57,6 +79,10 @@ pc.defineParameter("n", "Count",
portal.ParameterType.INTEGER, 0,
longDescription="How many compute nodes do you need.")
# Request a BS radio
pc.defineParameter("radio", "BS Radio",
portal.ParameterType.STRING, radios[0], radios)
# A list of routes
routes = [
('', "None"),
......@@ -128,6 +154,13 @@ node.addService(pg.Execute(shell="sh", command="sudo /bin/bash /local/repository
iface = node.addInterface("rf")
iface.component_id = params.iface
# Optional Radio
if params.radio != 'none':
radio = request.RawPC("radio")
radio.component_id = params.radio
node.component_manager_id = 'urn:publicid:IDN+emulab.net+authority+cm'
pass
for range in params.Spectrum:
# Request spectrum to use on a specific interface on the node. In MHZ
# First arg is frequency low bound, second is high bound, third is max power.
......@@ -158,4 +191,3 @@ for route in params.Routes:
# 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