X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=sfa%2Fmanagers%2Fslice_manager_pl.py;h=72ea567d24042ad153cbfec80e3720c49c5943b3;hb=44d31124c0515a06349da11e5db766d1b1b1fe18;hp=a897f8d1338d8e38d7eb222f879f00042d903e37;hpb=11d02cbfd5e91784119bb9377fceb4fa6adae621;p=sfa.git diff --git a/sfa/managers/slice_manager_pl.py b/sfa/managers/slice_manager_pl.py index a897f8d1..72ea567d 100644 --- a/sfa/managers/slice_manager_pl.py +++ b/sfa/managers/slice_manager_pl.py @@ -125,7 +125,7 @@ def get_ticket(api, xrn, rspec, origin_hrn=None): 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) @@ -204,7 +204,7 @@ def get_rspec(api, xrn=None, origin_hrn=None): 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() @@ -218,8 +218,8 @@ to refer to "contexts", which is the information that sfatables is requesting. B 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