Changeset fefa026


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

weird bug in dragon allocation: move this code to debug

Location:
fedd/federation
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • fedd/federation/emulab_access.py

    r50ef6e4 rfefa026  
    12311231                if isinstance(e, topdl.Computer):
    12321232                    if self.node_info.has_key(e.name):
    1233                         i = self.node_info[e.name]
    1234                         for ifname, vlan, type in i:
     1233                        info = self.node_info[e.name]
     1234                        for ifname, vlan, type in info:
    12351235                            for i in e.interface:
    12361236                                if i.name == ifname:
  • fedd/federation/experiment_partition.py

    r50ef6e4 rfefa026  
    211211        if sub.capacity is None:
    212212            raise service_error(service_error.internal,
    213                     "Cannot DRAGON split substrate w/o capacity")
     213                    "Cannot direct split substrate w/o capacity")
    214214        segs = [ ]
    215215        name = join_testbed(tb_name, "%d" % idx)
     
    303303        # Count the number of interfaces on this substrate in each testbed from
    304304        # the global topology
    305         count = { }
    306         node = { }
    307         for e in [ i.element for i in sub.interfaces ]:
    308             tb = e.get_attribute('testbed')
    309             count[tb] = count.get(tb, 0) + 1
    310             node[tb] = i.get_attribute('ip4_address')
     305        #count = { }
     306        #node = { }
     307        #for e in [ i.element for i in sub.interfaces ]:
     308            #tb = e.get_attribute('testbed')
     309            #count[tb] = count.get(tb, 0) + 1
     310            #node[tb] = i.get_attribute('ip4_address')
    311311
    312312
     
    537537                e = i.element
    538538                tb = e.get_attribute('testbed')
    539                 if tb and not tbs.has_key(tb):
    540                     for i in e.interface:
    541                         if s in i.subs:
    542                             tbs[tb]= i.get_attribute('ip4_address')
     539                if tb and tb not in tbs:
     540                    tbs[tb]= i.get_attribute('ip4_address')
    543541            if len(tbs) < 2:
    544542                continue
Note: See TracChangeset for help on using the changeset viewer.