X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=sfa%2Fcortexlab%2Fcortexlabshell.py;fp=sfa%2Fcortexlab%2Fcortexlabapi.py;h=94cb7d9fcff6e90a4d001d1550ccd7ecff002061;hb=79e790a945023b5a8167ca28671cdf8d3b6e4a1a;hp=8b976edb00e2a95b62131e38b2beef873e643bfc;hpb=b66385581e40464404bb642d69a737f9d27e414a;p=sfa.git diff --git a/sfa/cortexlab/cortexlabapi.py b/sfa/cortexlab/cortexlabshell.py similarity index 99% rename from sfa/cortexlab/cortexlabapi.py rename to sfa/cortexlab/cortexlabshell.py index 8b976edb..94cb7d9f 100644 --- a/sfa/cortexlab/cortexlabapi.py +++ b/sfa/cortexlab/cortexlabshell.py @@ -23,7 +23,7 @@ from sfa.trust.hierarchy import Hierarchy from sfa.cortexlab.iotlabaggregate import iotlab_xrn_object -class CortexlabTestbedAPI(): +class CortexlabShell(): """ Class enabled to use LDAP and OAR api calls. """ _MINIMUM_DURATION = 10 # 10 units of granularity 60 s, 10 mins @@ -55,7 +55,7 @@ class CortexlabTestbedAPI(): testbed. In seconds. """ - return CortexlabTestbedAPI._MINIMUM_DURATION + return CortexlabShell._MINIMUM_DURATION @staticmethod def GetPeers(peer_filter=None ): @@ -923,8 +923,8 @@ class CortexlabTestbedAPI(): \r\n leasefilter %s" % ( lease_filter_dict)) filter_dict_functions = { - 'slice_hrn' : CortexlabTestbedAPI.filter_lease_name, - 't_from' : CortexlabTestbedAPI.filter_lease_start_time + 'slice_hrn' : CortexlabShell.filter_lease_name, + 't_from' : CortexlabShell.filter_lease_start_time } reservation_list = list(unfiltered_reservation_list)