X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=sfa%2Fmanagers%2Faggregate_manager_eucalyptus.py;h=950d2f2f7bac58194a0892cd174fd6d86e067ac8;hb=0f90da7f05fbe3d07e56790c10f6ecc877b33754;hp=588f090fad82622c65e6fba8e9f7229c38bfd939;hpb=bbc9bba9db868983039901fc247677d6476d8ed4;p=sfa.git diff --git a/sfa/managers/aggregate_manager_eucalyptus.py b/sfa/managers/aggregate_manager_eucalyptus.py index 588f090f..950d2f2f 100644 --- a/sfa/managers/aggregate_manager_eucalyptus.py +++ b/sfa/managers/aggregate_manager_eucalyptus.py @@ -17,22 +17,17 @@ from sqlobject import * from sfa.util.faults import InvalidRSpec from sfa.util.xrn import urn_to_hrn, Xrn -from sfa.util.plxrn import hrn_to_pl_slicename, slicename_to_hrn +from sfa.util.plxrn import slicename_to_hrn from sfa.util.callids import Callids #comes with its own logging #from sfa.util.sfalogging import logger from sfa.util.version import version_core + from sfa.trust.credential import Credential -from sfa.plc.plaggregate import PlAggregate -# No Slice symbol in there -#from sfa.plc.plslices import Slice, Slices -from sfa.plc.plslices import PlSlices +from sfa.planetlab.plaggregate import PlAggregate +from sfa.planetlab.plslices import PlSlices from sfa.rspecs.version_manager import VersionManager from sfa.rspecs.rspec import RSpec -# not sure what this used to be nor where it is now defined -#from sfa.rspecs.sfa_rspec import sfa_rspec_version -# most likely this should now be -#from sfa.rspecs.version_manager import VersionManager ## # Meta data of an instance. @@ -286,7 +281,7 @@ class AggregateManagerEucalyptus: _inited=False # the init_server mechanism has vanished - def __init__ (self): + def __init__ (self, config): if AggregateManagerEucalyptus._inited: return AggregateManagerEucalyptus.init_server() @@ -682,7 +677,7 @@ class AggregateManagerEucalyptus: f.write("%s %s %s\n" % (instId, ipaddr, hrn)) f.close() - def GetVersion(api): + def GetVersion(api, options): version_manager = VersionManager() ad_rspec_versions = [] @@ -695,7 +690,7 @@ class AggregateManagerEucalyptus: xrn=Xrn(api.hrn) version_more = {'interface':'aggregate', 'sfa': 1, - 'geni_api': api.config.SFA_AGGREGATE_API_VERSION, + 'geni_api': '2', 'testbed':'myplc', 'hrn':xrn.get_hrn(), 'geni_request_rspec_versions': request_rspec_versions,