X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=sfa%2Fmanagers%2Fslice_manager_pl.py;h=02558dc5ecb6cf0f1b07d1b713d0d10deb465584;hb=fdaf8cf1900be5beeba9ed65f31955df7a9ca078;hp=af685b59dd302c321894cf895c6258699e212c85;hpb=07d8b2f40e6aeb7ed095a0bf8038235da55d1c71;p=sfa.git diff --git a/sfa/managers/slice_manager_pl.py b/sfa/managers/slice_manager_pl.py index af685b59..02558dc5 100644 --- a/sfa/managers/slice_manager_pl.py +++ b/sfa/managers/slice_manager_pl.py @@ -113,7 +113,7 @@ def get_ticket(api, xrn, rspec, origin_hrn=None): credential = api.getCredential() tickets = {} for net_hrn in rspecs: - net_urn = urn_to_hrn(net_hrn, 'authority') + net_urn = urn_to_hrn(net_hrn) 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 @@ -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