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:
parent
66ae9124be
commit
7390d6ebec
@ -52,9 +52,7 @@ class FirewallCallbacks(n_rpc.RpcCallback):
|
|||||||
"not changing to %(status)s"),
|
"not changing to %(status)s"),
|
||||||
{'fw_id': firewall_id, 'status': status})
|
{'fw_id': firewall_id, 'status': status})
|
||||||
return False
|
return False
|
||||||
#TODO(xuhanp): Remove INACTIVE status and use DOWN to
|
if status in (const.ACTIVE, const.DOWN):
|
||||||
# be consistent with other network resources
|
|
||||||
if status in (const.ACTIVE, const.INACTIVE, const.DOWN):
|
|
||||||
fw_db.status = status
|
fw_db.status = status
|
||||||
return True
|
return True
|
||||||
else:
|
else:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user