else:
# lets forward this rspec to a sm that knows about the network
for agg in aggregates:
- network_found = aggregates[agg].get_aggregates(credential, )net_urn
+ network_found = aggregates[agg].get_aggregates(credential, net_urn)
if network_found:
ticket = aggregates[aggregate].get_ticket(credential, \
slice_hrn, rspecs[net_hrn], origin_hrn)
from sfa.plc.nodes import Nodes
nodes = Nodes(api, origin_hrn=origin_hrn)
- if hrn:
+ if xrn:
rspec = nodes.get_rspec(xrn)
else:
nodes.refresh()
return the basic information needed in a dict.
"""
def fetch_context(slice_hrn, user_hrn, contexts):
- slice_hrn = urn_to_hrn(slice_xrn)[0]
- user_hrn = urn_to_hrn(user_xrn)[0]
+ #slice_hrn = urn_to_hrn(slice_xrn)[0]
+ #user_hrn = urn_to_hrn(user_xrn)[0]
base_context = {'sfa':{'user':{'hrn':user_hrn}}}
return base_context