Ticket #1009: sfa-2.0-9-patch-5.diff

File sfa-2.0-9-patch-5.diff, 1.4 KB (added by xyang@maxgigapop.net, 9 years ago)
  • /usr/lib/python2.6/site-packages/sfa/managers/

    old new class AggregateManagerMax (AggregateMana 
    195195            res['geni_urn'] = urn + '_vlan_' + vlan[0]
    196196            if vlan[1] == 'ACTIVE':
    197197                res['geni_status'] = 'ready'
    198             elif vlan[1] == 'FAILED':
     198            elif vlan[1] == 'FAILED' or vlan[1] == 'UNKNOWN':
    199199                res['geni_status'] = 'failed'
    200200                res['geni_error'] = vlan[2]
    201201            else:
    class AggregateManagerMax (AggregateMana 
    214214        if output.find("Unkown Rspec:") > 0:
    215215            raise NonExistingRecord(slice_id)
    216216        else:
    217             if output.find("Status => FAILED") > 0:
     217            if output.find("Status => FAILED") or output.find("Status => UNKNOWN") > 0:
    218218                top_level_status = 'failed'
    219219            elif (output.find("Status => ACCEPTED") > 0 or output.find("Status => PENDING") > 0
    220220                  or output.find("Status => IN") > 0 or output.find("Status => PATH") > 0
    221                   or output.find("Status => COMMITTED") > 0 or output.find("Status => unknown") > 0
     221                  or output.find("Status => COMMITTED") > 0
    222222                 ):
    223223                top_level_status = 'changing'
    224224            else: