Merge "Clean up unused VNF status"
This commit is contained in:
commit
4a77473dcd
@ -688,11 +688,9 @@ class VNFMPluginDb(vnfm.VNFMPluginBase, db_base.CommonDbMixin):
|
||||
|
||||
def _mark_vnf_dead(self, vnf_id):
|
||||
exclude_status = [
|
||||
constants.DOWN,
|
||||
constants.PENDING_CREATE,
|
||||
constants.PENDING_UPDATE,
|
||||
constants.PENDING_DELETE,
|
||||
constants.INACTIVE,
|
||||
constants.ERROR]
|
||||
return self._mark_vnf_status(
|
||||
vnf_id, exclude_status, constants.DEAD)
|
||||
|
@ -30,7 +30,6 @@ COMMON_PREFIXES = {
|
||||
|
||||
# Service operation status constants
|
||||
ACTIVE = "ACTIVE"
|
||||
DOWN = "DOWN"
|
||||
|
||||
PENDING_CREATE = "PENDING_CREATE"
|
||||
PENDING_UPDATE = "PENDING_UPDATE"
|
||||
@ -38,7 +37,6 @@ PENDING_DELETE = "PENDING_DELETE"
|
||||
PENDING_SCALE_IN = "PENDING_SCALE_IN"
|
||||
PENDING_SCALE_OUT = "PENDING_SCALE_OUT"
|
||||
|
||||
INACTIVE = "INACTIVE"
|
||||
DEAD = "DEAD"
|
||||
ERROR = "ERROR"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user