Remove INACTIVE status from FWaaS

DOWN status is introduced to replace INACTIVE status. There is one
place in FWaaS code which still checks INACTIVE status.

This commit removes INACTIVE status from FWaaS.

Change-Id: I896c81a6229978a46f8a88a31936920a1036f142
Partial-Bug: #1286048
This commit is contained in:
Xuhan Peng 2014-08-14 11:21:53 +08:00
parent 66ae9124be
commit 7390d6ebec

View File

@ -52,9 +52,7 @@ class FirewallCallbacks(n_rpc.RpcCallback):
"not changing to %(status)s"),
{'fw_id': firewall_id, 'status': status})
return False
#TODO(xuhanp): Remove INACTIVE status and use DOWN to
# be consistent with other network resources
if status in (const.ACTIVE, const.INACTIVE, const.DOWN):
if status in (const.ACTIVE, const.DOWN):
fw_db.status = status
return True
else: