Ignore:
Timestamp:
Sep 5, 2008 4:08:19 PM (16 years ago)
Author:
Ted Faber <faber@…>
Branches:
axis_example, compt_changes, info-ops, master, version-1.30, version-2.00, version-3.01, version-3.02
Children:
987aaa1
Parents:
bcbf543
Message:

add slice/experiment name

File:
1 edited

Legend:

Unmodified
Added
Removed
  • fedd/fedd_create_experiment.py

    rbcbf543 r4fc2250  
    12361236                print >>self.trace_file, "Experiment started"
    12371237
     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       
    12381255        return { 'emulab' : [ tbparams[tb]['emulab'] \
    12391256                for tb in tbparams.keys() \
    12401257                    if tbparams[tb].has_key('emulab') ],\
    12411258                    'experiment': vtopo,\
    1242                     'vis' : vis }
     1259                    'vis' : vis,
     1260                    'experimentID' : { 'fedid': expid },\
     1261                    'experimentAccess': { 'X509' : expcert },\
     1262                }
    12431263
    12441264if __name__ == '__main__':
Note: See TracChangeset for help on using the changeset viewer.