Ignore:
Timestamp:
Nov 18, 2011 6:43:19 PM (12 years ago)
Author:
Ted Faber <faber@…>
Branches:
compt_changes, info-ops, master
Children:
80b1e82
Parents:
2ac64d1a
Message:

More new Info stuff. Create, terminate, ftopo all work.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • fedd/federation/emulab_access.py

    r2ac64d1a r29d5f7c  
    10161016        the response that may need to be replayed, and return the response.
    10171017        """
     1018        i = 0
    10181019        # Copy the assigned names into the return topology
    1019         embedding = [ ]
    1020         for n in starter.node:
    1021             embedding.append({
    1022                 'toponame': n,
    1023                 'physname': ["%s%s" %  (starter.node[n], self.domain)],
    1024                 })
     1020        for e in topo.elements:
     1021            if isinstance(e, topdl.Computer):
     1022                if not self.create_debug:
     1023                    if e.name in starter.node:
     1024                        e.localname.append("%s%s" % \
     1025                                (starter.node[e.name], self.domain))
     1026                        e.status = 'active'
     1027                else:
     1028                    # Simple debugging assignment
     1029                    e.localname.append("node%d%s" % (i, self.domain))
     1030                    e.status = 'active'
     1031                    e.operation.extend(('testop1', 'testop2'))
     1032                    i += 1
     1033
    10251034        # Grab the log (this is some anal locking, but better safe than
    10261035        # sorry)
     
    10361045                    'topdldescription': topo.clone().to_dict()
    10371046                    },
    1038                 'embedding': embedding,
    10391047                'proof': proof.to_dict(),
    10401048                }
Note: See TracChangeset for help on using the changeset viewer.