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/protogeni_access.py

    rf54e8e4 rb4b19c7  
    10971097                    "%s/%s" % (self.staging_dir, ename), tmpdir, cf, cpw,
    10981098                    certfile, topo, connInfo, services)
     1099            # Copy the assigned names into the return topology
     1100            rvtopo = topo.clone()
     1101            for e in [ e for e in rvtopo.elements \
     1102                   if isinstance(e, topdl.Computer)]:
     1103                for n in e.name:
     1104                    if n in starter.node:
     1105                        e.set_attribute('hostname', starter.node[n])
    10991106        except service_error, e:
    11001107            err = e
     
    11261133                    'allocationLog': logv,
    11271134                    }
    1128             retval = self.allocation[aid]['started']
     1135            retval = copy.copy(self.allocation[aid]['started'])
    11291136            self.write_state()
     1137            retval['segmentdescription'] =  \
     1138                    { 'topdldescription': rvtopo.to_dict() }
    11301139            self.state_lock.release()
    11311140
Note: See TracChangeset for help on using the changeset viewer.