"""
-File containing the IotlabTestbedAPI, used to interact with nodes, users,
+File containing the IotlabShell, used to interact with nodes, users,
slices, leases and keys, as well as the dedicated iotlab database and table,
holding information about which slice is running which job.
from sfa.iotlab.iotlabaggregate import iotlab_xrn_object
-class IotlabTestbedAPI():
+class IotlabShell():
""" Class enabled to use LDAP and OAR api calls. """
_MINIMUM_DURATION = 10 # 10 units of granularity 60 s, 10 mins
testbed. In seconds.
"""
- return IotlabTestbedAPI._MINIMUM_DURATION
+ return IotlabShell._MINIMUM_DURATION
@staticmethod
def GetPeers(peer_filter=None ):
walltime, sleep_walltime = \
- IotlabTestbedAPI._process_walltime(\
+ IotlabShell._process_walltime(\
int(lease_dict['lease_duration']))
\r\n leasefilter %s" % ( lease_filter_dict))
filter_dict_functions = {
- 'slice_hrn' : IotlabTestbedAPI.filter_lease_name,
- 't_from' : IotlabTestbedAPI.filter_lease_start_time
+ 'slice_hrn' : IotlabShell.filter_lease_name,
+ 't_from' : IotlabShell.filter_lease_start_time
}
reservation_list = list(unfiltered_reservation_list)
for filter_type in lease_filter_dict: