Changeset ab847bc for fedd/federation/dragon_access.py
- Timestamp:
- Apr 28, 2010 4:09:53 AM (14 years ago)
- Branches:
- axis_example, compt_changes, info-ops, master, version-3.01, version-3.02
- Children:
- 12658df
- Parents:
- 05fceef
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
fedd/federation/dragon_access.py
r05fceef rab847bc 9 9 import time 10 10 11 from threading import *11 from threading import Thread, Lock 12 12 from subprocess import Popen, call, PIPE, STDOUT 13 13 … … 804 804 # redoing the allocation. 805 805 self.state_lock.acquire() 806 retval = self. allocation[aid].get('started', None)806 retval = self.state[aid].get('started', None) 807 807 self.state_lock.release() 808 808 if retval: … … 858 858 self.export_store_info(certfile, vlan_no, connInfo) 859 859 860 860 861 if gri: 862 rtopo = topo.clone() 863 for s in rtopo.substrates: 864 s.set_attribute('vlan', vlan_no) 865 s.set_attribute('gri', gri) 866 861 867 # Grab the log (this is some anal locking, but better safe than 862 868 # sorry) … … 867 873 # if the 'started' key is in the allocation, we'll return it rather 868 874 # than redo the setup. 869 self. allocation[aid]['started'] = {875 self.state[aid]['started'] = { 870 876 'allocID': req['allocID'], 871 877 'allocationLog': logv, 878 'segmentdescription': { 879 'topdldescription': rtopo.to_dict() 880 }, 872 881 } 873 retval = self. allocation[aid]['started']882 retval = self.state[aid]['started'] 874 883 self.write_state() 875 884 self.state_lock.release()
Note: See TracChangeset
for help on using the changeset viewer.