Commit 875f02e4 authored by Leigh Stoller's avatar Leigh Stoller

Update profile.py

parent ba6f65c2
"""Spectrum testing
"""
# Disable spectrum requests while debugging
Debugging = 1
# Import the Portal object.
import geni.portal as portal
# Import the ProtoGENI library.
......@@ -54,20 +57,23 @@ node = request.RawPC("node")
if params.osImage and params.osImage != "default":
node.disk_image = params.osImage
pass
node.component_id = params.node_id
# Request spectrum to use on a specific interface on the node. In MHZ
iface = node.addInterface("rf")
iface.component_id = params.iface
# First arg is frequency low bound, second is high bound, third is max power.
iface.requestSpectrum(902, 904, -10)
if params.node_id != "any":
node.component_id = params.node_id
# Request to use spectrum on any TX devices attached to the node.
node.requestSpectrum(5725, 5730, 5.5)
node.requestSpectrum(5740, 5750, -30)
# Request spectrum to use across the all nodes in the experiment.
request.requestSpectrum(2400, 2410, -20)
if !Debugging:
# Request spectrum to use on a specific interface on the node. In MHZ
iface = node.addInterface("rf")
iface.component_id = params.iface
# First arg is frequency low bound, second is high bound, third is max power.
iface.requestSpectrum(902, 904, -10)
# Request to use spectrum on any TX devices attached to the node.
node.requestSpectrum(5725, 5730, 5.5)
node.requestSpectrum(5740, 5750, -30)
# Request spectrum to use across the all nodes in the experiment.
request.requestSpectrum(2400, 2410, -20)
pass
# 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