e8e4eeadb3b2bd71e50d0473982b2377c1f53394
[sfa.git] / sfa / methods / GetVersion.py
1 from sfa.util.method import Method
2
3 from sfa.storage.parameter import Parameter
4
5
6 class GetVersion(Method):
7     """
8     Returns this GENI Aggregate Manager's Version Information
9     @return version
10     """
11     interfaces = ['registry','aggregate', 'slicemgr', 'component']
12     accepts = []
13     returns = Parameter(dict, "Version information")
14
15     def call(self):
16         self.api.logger.info("interface: %s\tmethod-name: %s" % (self.api.interface, self.name))
17         return self.api.manager.GetVersion(self.api)