geni.aggregate.cloudlab

class CloudLabAM(name, host, cmid=None, url=None)[source]
exception InvalidRSpecPathError(path)
args
with_traceback()

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.

exception UnspecifiedComponentManagerError
args
with_traceback()

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.

property amtype
property api
property component_manager_id
createsliver(context, sname, rspec)

GENI AM APIv2 method to reserve resources at this aggregate.

Parameters
  • context – geni-lib context

  • sname (str) – Slice name

  • rspec (geni.rspec.RSpec) – Valid request RSpec

deletesliver(context, sname)

GENI AM APIv2 method to delete a resource reservation at this aggregate.

Parameters
  • context – geni-lib context

  • sname (str) – Slice name

geniCancelUpdateUsers(context, sname)
geniRestart(context, sname, urns)
geniStart(context, sname)
geniUpdateUsers(context, sname, user_info_list)
getConsoleURL(context, sname, urn)
getversion(context)

GENI AM API method to get the version information for this aggregate.

Parameters

context – geni-lib context

Returns

dict – Dictionary of key/value pairs with version information from this aggregate.

listresources(context, sname=None, available=False)

GENI AM APIv2 method to get available resources from an aggregate, or resources allocated to a specific sliver.

Parameters
  • context – geni-lib context

  • sname (str) – Slice name (optional)

  • available (bool) – Only list available resources

Returns

geni.rspec.RSpec – If sname is provided, listresources will return a manifest rspec for the given slice name. Otherwise, listresources will return the advertisement rspec for the given aggregate.

renewsliver(context, sname, date)

GENI AM APIv2 method to renew a sliver until the given datetime.

Parameters
  • context – geni-lib context

  • sname (str) – Slice name

  • date (str) – RFC 3339-compliant date string for new expiration date

Note

Aggregates may have maximum expiration limits, restricting how far in the future you can set your expiration. This call may result in an error in such cases, or success with a sooner future date.

sliverstatus(context, sname)

GENI AM APIv2 method to get the status of a current sliver at the given aggregate.

Parameters
  • context – geni-lib context

  • sname (str) – Slice name

Returns

dict – Mapping of key/value pairs for status information the aggregate supports.

aggregates()[source]
name_to_aggregate()[source]