X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=sfa%2Fmanagers%2Faggregate_manager_vini.py;h=227281a6bc4ff07f9c2361da3fa47b8abb9852b0;hb=676c77806a1a2fdde35c0161eb79056cc86cbea1;hp=e79dcf421c263658ac57c23fbf2070ca2fae034b;hpb=f5a6829ab1fd58a695c3e6a92bfbf905223c4693;p=sfa.git diff --git a/sfa/managers/aggregate_manager_vini.py b/sfa/managers/aggregate_manager_vini.py index e79dcf42..227281a6 100644 --- a/sfa/managers/aggregate_manager_vini.py +++ b/sfa/managers/aggregate_manager_vini.py @@ -4,7 +4,7 @@ import traceback import sys from types import StringTypes -from sfa.util.xrn import urn_to_hrn +from sfa.util.xrn import urn_to_hrn, Xrn from sfa.util.plxrn import hrn_to_pl_slicename from sfa.util.rspec import * from sfa.util.specdict import * @@ -25,20 +25,15 @@ from sfa.util.version import version_core # VINI aggregate is almost identical to PLC aggregate for many operations, # so lets just import the methods form the PLC manager from sfa.managers.aggregate_manager_pl import ( -start_slice, stop_slice, renew_slice, reset_slice, get_slices, get_ticket) +start_slice, stop_slice, renew_slice, reset_slice, get_slices, get_ticket, slice_status) def GetVersion(api): + xrn=Xrn(api.hrn) return version_core({'interface':'aggregate', - 'testbed':'myplc.vini'}) - -def slice_status(api, slice_xrn, creds): - result = {} - result['geni_urn'] = slice_xrn - result['geni_status'] = 'unknown' - result['geni_resources'] = {} - return result - + 'testbed':'myplc.vini', + 'hrn':xrn.get_hrn(), + }) def delete_slice(api, xrn, creds): hrn, type = urn_to_hrn(xrn)