.. seealso::: Driver class
"""
- def __init__(self, config):
+ def __init__(self, api):
"""
Sets the iotlab SFA config parameters,
:type config: Config object
"""
- Driver.__init__(self, config)
- self.config = config
- self.testbed_shell = IotlabShell(config)
+ Driver.__init__(self, api)
+ self.api=api
+ config = api.config
+ self.testbed_shell = IotlabShell(api)
self.cache = None
def augment_records_with_testbed_info(self, record_list):
_MINIMUM_DURATION = 10 # 10 units of granularity 60 s, 10 mins
- def __init__(self, config):
+ def __init__(self, api):
"""Creates an instance of OARrestapi and LDAPapi which will be used to
issue calls to OAR or LDAP methods.
Set the time format and the testbed granularity used for OAR
:param config: configuration object from sfa.util.config
:type config: Config object
"""
+ self.api=api
+ config=api.config
self.leases_db = TestbedAdditionalSfaDB(config)
self.oar = OARrestapi()
self.ldap = LDAPapi()