Changeset 4b256af
- Timestamp:
- Dec 1, 2011 10:23:05 AM (13 years ago)
- Branches:
- compt_changes, info-ops, master
- Children:
- db3da0b
- Parents:
- 7aaa8dc
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
fedd/federation/emulab_segment.py
r7aaa8dc r4b256af 241 241 """ 242 242 243 ev_ok = ('ISUP', 'ALWAYSUP' ) 243 ev_active = ('ISUP', 'ALWAYSUP' ) 244 ev_starting = ('REBOOTED', 'REBOOTING','PXEBOOTING', 245 'BOOTING', 'RELOADSETUP', 'RELOADING', 'RELOADDONE', 246 'RELOADDONEV2', 'TBSETUP') 247 ev_terminating = ( 'SHUTDOWN' ) 248 244 249 245 250 if self.debug: … … 266 271 os = v.get('osid', None) 267 272 268 if st == 'up' and ev in ev_ok: st = 'active' 273 if st == 'up': 274 if ev in ev_active: st = 'active' 275 elif ev in ev_starting: st = 'starting' 276 elif ev in ev_terminating: st = 'terminating' 277 else: st = 'failed' 269 278 else: st = 'failed' 270 279
Note: See TracChangeset
for help on using the changeset viewer.