resourceDict = {'RSpec': resources}
tempspec.parseDict(resourceDict)
rspecs[net_hrn] = tempspec.toxml()
resourceDict = {'RSpec': resources}
tempspec.parseDict(resourceDict)
rspecs[net_hrn] = tempspec.toxml()
#print "rspecs:", rspecs.keys()
#print "aggregates:", aggregates.keys()
# send each rspec to the appropriate aggregate/sm
#print "rspecs:", rspecs.keys()
#print "aggregates:", aggregates.keys()
# send each rspec to the appropriate aggregate/sm
for netspec in netspecs:
net_hrn = netspec['name']
resources = {'start_time': 0, 'end_time': 0 ,
for netspec in netspecs:
net_hrn = netspec['name']
resources = {'start_time': 0, 'end_time': 0 ,
resourceDict = {'RSpec': resources}
temp_rspec.parseDict(resourceDict)
rspecs[net_hrn] = temp_rspec.toxml()
resourceDict = {'RSpec': resources}
temp_rspec.parseDict(resourceDict)
rspecs[net_hrn] = temp_rspec.toxml()
try:
# if we are directly connected to the aggregate then we can just
# send them the request. if not, then we may be connected to an sm
try:
# if we are directly connected to the aggregate then we can just
# send them the request. if not, then we may be connected to an sm
if network_found:
ticket = aggregates[aggregate].get_ticket(credential, \
slice_hrn, rspecs[net_hrn], origin_hrn)
if network_found:
ticket = aggregates[aggregate].get_ticket(credential, \
slice_hrn, rspecs[net_hrn], origin_hrn)
tmp_rspec.parseString(agg_ticket.get_rspec())
networks.extend([{'NetSpec': tmp_rspec.getDictsByTagName('NetSpec')}])
#new_ticket.set_parent(api.auth.hierarchy.get_auth_ticket(auth_hrn))
tmp_rspec.parseString(agg_ticket.get_rspec())
networks.extend([{'NetSpec': tmp_rspec.getDictsByTagName('NetSpec')}])
#new_ticket.set_parent(api.auth.hierarchy.get_auth_ticket(auth_hrn))
resources = {'networks': networks, 'start_time': 0, 'duration': 0}
resourceDict = {'RSpec': resources}
tmp_rspec.parseDict(resourceDict)
new_ticket.set_rspec(tmp_rspec.toxml())
resources = {'networks': networks, 'start_time': 0, 'duration': 0}
resourceDict = {'RSpec': resources}
tmp_rspec.parseDict(resourceDict)
new_ticket.set_rspec(tmp_rspec.toxml())
from sfa.plc.nodes import Nodes
nodes = Nodes(api, origin_hrn=origin_hrn)
from sfa.plc.nodes import Nodes
nodes = Nodes(api, origin_hrn=origin_hrn)
return the basic information needed in a dict.
"""
def fetch_context(slice_hrn, user_hrn, contexts):
return the basic information needed in a dict.
"""
def fetch_context(slice_hrn, user_hrn, contexts):