Add Status field to inventory items #9930

Closed
opened 2025-12-29 21:24:34 +01:00 by adam · 4 comments
Owner

Originally created by @ITJamie on GitHub (Jul 2, 2024).

Originally assigned to: @arthanson on GitHub.

NetBox version

v4.0.6

Feature type

Data model extension

Proposed functionality

add a "status" field to the inventory item model

Use case

being able to document the state of inventory items would be useful.
example states:

  • active
  • failed
  • missing/removed (to document that an inventory item wasn't seen during last audit/check)

it would be great if this choices list could be extended like some of the status fields can be

Database changes

add a status field to the inventory item model

External dependencies

n/a

Originally created by @ITJamie on GitHub (Jul 2, 2024). Originally assigned to: @arthanson on GitHub. ### NetBox version v4.0.6 ### Feature type Data model extension ### Proposed functionality add a "status" field to the inventory item model ### Use case being able to document the state of inventory items would be useful. example states: - active - failed - missing/removed (to document that an inventory item wasn't seen during last audit/check) it would be great if this choices list could be extended like some of the status fields can be ### Database changes add a status field to the inventory item model ### External dependencies n/a
adam added the status: acceptedtype: featurecomplexity: low labels 2025-12-29 21:24:34 +01:00
adam closed this issue 2025-12-29 21:24:34 +01:00
Author
Owner

@sleepinggenius2 commented on GitHub (Jul 2, 2024):

I think it would make sense for the default choices to match the ones for module status, but should allow for extension as well.

@sleepinggenius2 commented on GitHub (Jul 2, 2024): I think it would make sense for the default choices to match the ones for module status, but should allow for extension as well.
Author
Owner

@AnythingOverIP commented on GitHub (Jul 9, 2024):

Couldnt the Custom Fields be leveraged for that?

@AnythingOverIP commented on GitHub (Jul 9, 2024): Couldnt the Custom Fields be leveraged for that?
Author
Owner

@arthanson commented on GitHub (Jul 16, 2024):

Module status fields are:

    STATUS_OFFLINE = 'offline'
    STATUS_ACTIVE = 'active'
    STATUS_PLANNED = 'planned'
    STATUS_STAGED = 'staged'
    STATUS_FAILED = 'failed'
    STATUS_DECOMMISSIONING = 'decommissioning'
@arthanson commented on GitHub (Jul 16, 2024): Module status fields are: ``` STATUS_OFFLINE = 'offline' STATUS_ACTIVE = 'active' STATUS_PLANNED = 'planned' STATUS_STAGED = 'staged' STATUS_FAILED = 'failed' STATUS_DECOMMISSIONING = 'decommissioning' ```
Author
Owner

@ITJamie commented on GitHub (Jul 29, 2024):

Im happy to make a PR for this

@ITJamie commented on GitHub (Jul 29, 2024): Im happy to make a PR for this
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#9930