Changeset fefa026 for fedd/federation
- Timestamp:
- May 26, 2010 3:18:16 AM (15 years ago)
- Branches:
- axis_example, compt_changes, info-ops, master, version-3.01, version-3.02
- Children:
- c5869ef
- Parents:
- 50ef6e4
- Location:
- fedd/federation
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
fedd/federation/emulab_access.py
r50ef6e4 rfefa026 1231 1231 if isinstance(e, topdl.Computer): 1232 1232 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: 1235 1235 for i in e.interface: 1236 1236 if i.name == ifname: -
fedd/federation/experiment_partition.py
r50ef6e4 rfefa026 211 211 if sub.capacity is None: 212 212 raise service_error(service_error.internal, 213 "Cannot DRAGONsplit substrate w/o capacity")213 "Cannot direct split substrate w/o capacity") 214 214 segs = [ ] 215 215 name = join_testbed(tb_name, "%d" % idx) … … 303 303 # Count the number of interfaces on this substrate in each testbed from 304 304 # 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) + 1310 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') 311 311 312 312 … … 537 537 e = i.element 538 538 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') 543 541 if len(tbs) < 2: 544 542 continue
Note: See TracChangeset
for help on using the changeset viewer.