1 from sfa.util.method import Method
2 from sfa.util.sfalogging import logger
4 from sfa.storage.parameter import Parameter
7 class GetVersion(Method):
9 Returns this GENI Aggregate Manager's Version Information
12 interfaces = ['registry', 'aggregate']
14 Parameter(dict, "Options")
16 returns = Parameter(dict, "Version information")
18 # API v2 specifies options is optional, so..
19 def call(self, options=None):
22 logger.info("interface: %s\tmethod-name: %s" %
23 (self.api.interface, self.name))
24 return self.api.manager.GetVersion(self.api, options)