X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;ds=sidebyside;f=sfa%2Fmanagers%2Faggregate_manager_eucalyptus.py;h=552f544690347f7df230514631e47e5010a18e5f;hb=b6de9285a970eccb9658a0078c49f76fb11af7cd;hp=1021392e79caa2f35517c591025ee46ec76e2720;hpb=20df3ae52eba1e640b0b0eb147fa6b4cfe51f734;p=sfa.git diff --git a/sfa/managers/aggregate_manager_eucalyptus.py b/sfa/managers/aggregate_manager_eucalyptus.py index 1021392e..552f5446 100644 --- a/sfa/managers/aggregate_manager_eucalyptus.py +++ b/sfa/managers/aggregate_manager_eucalyptus.py @@ -286,7 +286,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() @@ -447,7 +447,7 @@ class AggregateManagerEucalyptus: port=eucaPort, path=srvPath) - def ListResources(api, creds, options={}): + def ListResources(api, creds, options): call_id = options.get('call_id') if Callids().already_handled(call_id): return "" # get slice's hrn from options @@ -544,7 +544,7 @@ class AggregateManagerEucalyptus: """ Hook called via 'sfi.py create' """ - def CreateSliver(api, slice_xrn, creds, xml, users, options={}): + def CreateSliver(api, slice_xrn, creds, xml, users, options): call_id = options.get('call_id') if Callids().already_handled(call_id): return "" @@ -552,7 +552,7 @@ class AggregateManagerEucalyptus: logger.debug("In CreateSliver") aggregate = PlAggregate(self.driver) - slices = PlSlices(api) + slices = PlSlices(self.driver) (hrn, type) = urn_to_hrn(slice_xrn) peer = slices.get_peer(hrn) sfa_peer = slices.get_sfa_peer(hrn) @@ -682,7 +682,7 @@ class AggregateManagerEucalyptus: f.write("%s %s %s\n" % (instId, ipaddr, hrn)) f.close() - def GetVersion(api, options={}): + def GetVersion(api, options): version_manager = VersionManager() ad_rspec_versions = [] @@ -695,7 +695,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,