Changeset 4ffa6f8 for fedd/federation/experiment_control.py
- Timestamp:
- Jul 12, 2012 5:48:44 PM (13 years ago)
- Branches:
- compt_changes, master
- Children:
- 87b1a06
- Parents:
- 4708875
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
fedd/federation/experiment_control.py
r4708875 r4ffa6f8 327 327 328 328 self.tbmap = { } 329 self.tbactive = set()330 329 lineno =0 331 330 try: … … 338 337 try: 339 338 label, url = line.split(':', 1) 340 if ',' in label:341 label, act = label.split(',', 1)342 active = (act.strip() == 'active')343 else:344 active = False345 339 self.tbmap[label] = url 346 if active: self.tbactive.add(label)347 340 except ValueError, e: 348 341 self.log.warn("[read_mapdb] Ignored bad line (%d) in " +\ … … 2169 2162 # of the testbed map. 2170 2163 tbmap = dict(self.tbmap) 2171 tbactive = set(self.tbactive)2172 2164 for m in req.get('testbedmap', []): 2173 2165 if 'testbed' in m and 'uri' in m: 2174 2166 tbmap[m['testbed']] = m['uri'] 2175 if 'active' in m and m['active']: tbactive.add(m['testbed'])2176 2167 2177 2168 # a place to work … … 2213 2204 connInfo = { } # Connection information 2214 2205 2215 self.split_topology(top, topo, testbeds)2216 2217 2206 self.get_access_to_testbeds(testbeds, fid, allocated, 2218 2207 tbparams, masters, tbmap, expid, expcert_file) 2208 2209 # tbactive is the set of testbeds that have NATs in front of their 2210 # portals. They need to initiate connections. 2211 tbactive = set([k for k, v in tbparams.items() \ 2212 if v.get_attribute('nat_portals')]) 2213 2214 self.split_topology(top, topo, testbeds) 2219 2215 2220 2216 attrs = self.generate_keys_and_hosts(tmpdir, expid, hosts, tbparams)
Note: See TracChangeset
for help on using the changeset viewer.