Changeset 05c41f5 for fedd/federation/emulab_segment.py
- Timestamp:
- Oct 7, 2011 5:29:41 PM (12 years ago)
- Branches:
- compt_changes, info-ops, master
- Children:
- 58e5a4f
- Parents:
- 743a102
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
fedd/federation/emulab_segment.py
r743a102 r05c41f5 156 156 return code == 0 157 157 158 def terminate_exp(self, pid, eid, wait=True): 159 """ 160 Completely terminate experiment 161 """ 162 if self.debug: 163 if self.log: 164 self.log.info("[swap_exp]: (debug) terminate %s" % eid) 165 return True 166 else: 167 if self.log: 168 self.log.info("[swap_exp]: Terminating %s" % (eid) 169 params = { 170 'proj': pid, 171 'exp': eid, 172 'wait': wait, 173 } 174 code, value = self.emulab_call('experiment.endexp', params) 175 176 if self.log: 177 if code == 0: self.log.info('[swap_exp]: Terminate succeeded') 178 else: self.log.error('[swap_exp]: Terminate failed: %s' % value) 179 180 return code == 0 181 158 182 def modify_exp(self, pid, eid, tcl, wait=True): 159 183 if self.debug:
Note: See TracChangeset
for help on using the changeset viewer.