Ignore:
Timestamp:
Apr 21, 2010 5:31:03 AM (14 years ago)
Author:
Ted Faber <faber@…>
Branches:
axis_example, compt_changes, info-ops, master, version-3.01, version-3.02
Children:
f7a54c6
Parents:
f54e8e4
Message:

Get topology information into the info operation, as annotations of a topology description. This required adding such information to the start segment replies as well

File:
1 edited

Legend:

Unmodified
Added
Removed
  • fedd/federation/emulab_access.py

    rf54e8e4 rb4b19c7  
    15521552                    debug=self.create_debug, log=alloc_log)
    15531553            rv = starter(self, ename, proj, user, expfile, tmpdir)
     1554            # Copy the assigned names into the return topology
     1555            rvtopo = topo.clone()
     1556            for e in [ e for e in rvtopo.elements \
     1557                   if isinstance(e, topdl.Computer)]:
     1558                for n in e.name:
     1559                    if n in starter.node:
     1560                        e.set_attribute('hostname', starter.node[n])
    15541561        except service_error, e:
    15551562            err = e
     
    15811588                    'allocationLog': logv,
    15821589                    }
    1583             retval = self.allocation[aid]['started']
     1590            retval = copy.copy(self.allocation[aid]['started'])
    15841591            self.write_state()
    15851592            self.state_lock.release()
    1586 
     1593            retval['segmentdescription'] =  \
     1594                    { 'topdldescription': rvtopo.to_dict() }
    15871595            return retval
    15881596        elif err:
Note: See TracChangeset for help on using the changeset viewer.