Commit becceba0 authored by Leigh Stoller's avatar Leigh Stoller


parent 01c54e5b
......@@ -9,6 +9,8 @@ import as pg
import geni.rspec.emulab as emulab
# Spectrum specific extensions.
import geni.rspec.emulab.spectrum as spectrum
# Route specific extensions.
import geni.rspec.emulab.route as route
# Create a portal context, needed to defined parameters
pc = portal.Context()
......@@ -55,6 +57,23 @@ pc.defineParameter("n", "Count",
portal.ParameterType.INTEGER, 0,
longDescription="How many compute nodes do you need.")
# A list of routes
routes = [
('', "None"),
('Red Detour', "Red Detour"),
("Purple", "Purple"),
("Green", "Green"),
("Guardsman Direct", "Guardsman Direct"),
("Blue Detour", "Blue Detour"),
("Orange", "Orange"),
# Request a route
pc.defineParameter("route1", "Bus Route 1",
portal.ParameterType.STRING, routes[0], routes)
pc.defineParameter("route2", "Bus Route 2",
portal.ParameterType.STRING, routes[0], routes)
# Now a structure to define a set of frequency ranges
ps = pc.defineStructParameter(
"Spectrum","Range",[{"lower" : "3701.3", "upper" : "3703.7"}],
......@@ -132,6 +151,14 @@ while params.n:
params.n = params.n - 1;
# Request the bus route
if params.route1:
if params.route2:
# Print the RSpec to the enclosing page.
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