Ignore:
Timestamp:
May 26, 2010 3:18:49 AM (14 years ago)
Author:
Ted Faber <faber@…>
Branches:
axis_example, compt_changes, info-ops, master, version-3.01, version-3.02
Children:
cf00ddd
Parents:
fefa026
Message:

checkpoint and debugging

File:
1 edited

Legend:

Unmodified
Added
Removed
  • fedd/federation/experiment_control.py

    rfefa026 rc5869ef  
    10171017            self.node = { }
    10181018
     1019        #def make_map(self, resp):
     1020            #if 'segmentdescription' in resp and \
     1021                    #'topdldescription' in resp['segmentdescription']:
     1022                #top = topdl.Topology(\
     1023                        #**resp['segmentdescription']['topdldescription'])
     1024                #for e in [e for e in top.elements \
     1025                        #if isinstance(e, topdl.Computer)]:
     1026                    #hn = e.get_attribute('hostname')
     1027                    #if hn:
     1028                        #for n in e.name:
     1029                            #self.node[n] = hn
     1030
    10191031        def make_map(self, resp):
    1020             if 'segmentdescription' in resp and \
    1021                     'topdldescription' in resp['segmentdescription']:
    1022                 top = topdl.Topology(\
    1023                         **resp['segmentdescription']['topdldescription'])
    1024                 for e in [e for e in top.elements \
    1025                         if isinstance(e, topdl.Computer)]:
    1026                     hn = e.get_attribute('hostname')
    1027                     if hn:
    1028                         for n in e.name:
    1029                             self.node[n] = hn
     1032            for e in resp.get('embedding', []):
     1033                if 'toponame' in e and 'physname' in e:
     1034                    self.node[e['toponame']] = e['physname'][0]
    10301035
    10311036        def __call__(self, uri, aid, topo, masters, attrs=None, connInfo=None):
     
    12261231            for s in starters:
    12271232                node.update(s.node)
    1228             # Assigng the mapping as a hostname attribute
     1233            # Assign the mapping as a hostname attribute
    12291234            for e in [ e for e in top.elements \
    12301235                    if isinstance(e, topdl.Computer)]:
Note: See TracChangeset for help on using the changeset viewer.