Changeset 4fc2250 for fedd/fedd_create_experiment.py
- Timestamp:
- Sep 5, 2008 4:08:19 PM (16 years ago)
- Branches:
- axis_example, compt_changes, info-ops, master, version-1.30, version-2.00, version-3.01, version-3.02
- Children:
- 987aaa1
- Parents:
- bcbf543
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
fedd/fedd_create_experiment.py
rbcbf543 r4fc2250 1236 1236 print >>self.trace_file, "Experiment started" 1237 1237 1238 # Generate an ID for the experiment (slice) and a certificate that the 1239 # allocator can use to prove they own it. We'll ship it back through 1240 # the encrypted connection. 1241 (expid, expcert) = generate_fedid("test", dir=tmpdir, 1242 trace=self.trace_file) 1243 1244 if self.trace_file: 1245 print >>self.trace_file, "removing %s" % tmpdir 1246 1247 # Walk up tmpdir, deleting as we go 1248 for path, dirs, files in os.walk(tmpdir, topdown=False): 1249 for f in files: 1250 os.remove(os.path.join(path, f)) 1251 for d in dirs: 1252 os.rmdir(os.path.join(path, d)) 1253 os.rmdir(tmpdir) 1254 1238 1255 return { 'emulab' : [ tbparams[tb]['emulab'] \ 1239 1256 for tb in tbparams.keys() \ 1240 1257 if tbparams[tb].has_key('emulab') ],\ 1241 1258 'experiment': vtopo,\ 1242 'vis' : vis } 1259 'vis' : vis, 1260 'experimentID' : { 'fedid': expid },\ 1261 'experimentAccess': { 'X509' : expcert },\ 1262 } 1243 1263 1244 1264 if __name__ == '__main__':
Note: See TracChangeset
for help on using the changeset viewer.