Changeset 7fe81be for fedd/federation
- Timestamp:
- Apr 7, 2010 2:37:59 AM (15 years ago)
- Branches:
- axis_example, compt_changes, info-ops, master, version-3.01, version-3.02
- Children:
- 73e7f5c
- Parents:
- 5f6929a
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
fedd/federation/experiment_control.py
r5f6929a r7fe81be 1307 1307 allocated[tb] = 1 1308 1308 1309 def split_topology(self, top, topo, testbeds , eid, master, tbparams):1309 def split_topology(self, top, topo, testbeds): 1310 1310 """ 1311 1311 Create the sub-topologies that are needed for experiment instantiation. … … 1313 1313 for tb in testbeds: 1314 1314 topo[tb] = top.clone() 1315 to_delete = [ ] 1316 # XXX: copy in for loop to simplify 1317 for e in topo[tb].elements: 1315 # copy in for loop allows deletions from the original 1316 for e in [ e for e in topo[tb].elements]: 1318 1317 etb = e.get_attribute('testbed') 1319 if etb and etb != tb: 1318 # NB: elements without a testbed attribute won't appear in any 1319 # sub topologies. 1320 if not etb or etb != tb: 1320 1321 for i in e.interface: 1321 1322 for s in i.subs: … … 1325 1326 raise service_error(service_error.internal, 1326 1327 "Can't remove interface??") 1327 to_delete.append(e) 1328 for e in to_delete: 1329 topo[tb].elements.remove(e) 1328 topo[tb].elements.remove(e) 1330 1329 topo[tb].make_indices() 1331 1330 … … 1691 1690 master, eid, myname, desthost, portal_type, 1692 1691 infs, conn_type="ssh", conn_attrs=[], expid=expid) 1693 #if self.fedkit:1694 #self.add_kit(portal, self.fedkit)1695 #if self.gatewaykit:1696 #self.add_kit(portal, self.gatewaykit)1697 1692 1698 1693 topo[st].elements.append(portal) … … 2158 2153 self.get_access_to_testbeds(testbeds, access_user, 2159 2154 export_project, master, allocated, tbparams, services) 2160 self.split_topology(top, topo, testbeds , eid, master, tbparams)2155 self.split_topology(top, topo, testbeds) 2161 2156 2162 2157 # Copy configuration files into the remote file store
Note: See TracChangeset
for help on using the changeset viewer.