netbox icon indicating copy to clipboard operation
netbox copied to clipboard

Add Status field to inventory items

Open ITJamie opened this issue 1 year ago • 1 comments

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

ITJamie avatar Jul 02 '24 08:07 ITJamie

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 avatar Jul 02 '24 15:07 sleepinggenius2

Couldnt the Custom Fields be leveraged for that?

AnythingOverIP avatar Jul 09 '24 19:07 AnythingOverIP

Module status fields are:

    STATUS_OFFLINE = 'offline'
    STATUS_ACTIVE = 'active'
    STATUS_PLANNED = 'planned'
    STATUS_STAGED = 'staged'
    STATUS_FAILED = 'failed'
    STATUS_DECOMMISSIONING = 'decommissioning'

arthanson avatar Jul 16 '24 07:07 arthanson

Im happy to make a PR for this

ITJamie avatar Jul 29 '24 10:07 ITJamie