- except Exception,e:
- print "Exception in slicetabexperiment.py in ple resource search %s" % e
-
- #print "list of ple res hrns"
- #print ple_resource_list
- #print "list of nit_paris res hrns"
- #print nitos_paris_resource_list
- #print "list of iotLab res hrns"
- #print iotlab_resource_list
- #print "list of nitos res hrns"
- #print nitos_resource_list
-
-
+ #except Exception as e:
+ # logger.error("Exception in slicetabexperiment.py in OneLab resource search {}".format(e))
+ #
+ ##logger.debug("list of ple res hrns")
+ ##logger.debug(ple_resource_list)
+ ##logger.debug("list of nit_paris res hrns")
+ ##logger.debug(nitos_paris_resource_list)
+ ##logger.debug("list of iotLab res hrns")
+ ##logger.debug(iotlab_resource_list)
+ ##logger.debug("list of nitos res hrns")
+ ##logger.debug(nitos_resource_list)
+
+ #all_users = list()
+ ##get all iotlab users
+ #all_users = list()
+ #try:
+ # engine = ConfigEngine()
+ # userData = "Basic " + (engine.iotlab_admin_user() + ":" + engine.iotlab_admin_password()).encode("base64").rstrip()
+ # req = urllib2.Request(engine.iotlab_url())
+ # req.add_header('Accept', 'application/json')
+ # req.add_header("Content-type", "application/x-www-form-urlencoded")
+ # req.add_header('Authorization', userData)
+ # # make the request and print the results
+ # res = urllib2.urlopen(req)
+ # all_users = json.load(res)
+ #except urllib2.URLError as e:
+ # logger.error("There is a problem in getting iotlab users {}".format(e.reason))
+