netbox
netbox copied to clipboard
Add Status field to inventory items
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
I think it would make sense for the default choices to match the ones for module status, but should allow for extension as well.
Couldnt the Custom Fields be leveraged for that?
Module status fields are:
STATUS_OFFLINE = 'offline'
STATUS_ACTIVE = 'active'
STATUS_PLANNED = 'planned'
STATUS_STAGED = 'staged'
STATUS_FAILED = 'failed'
STATUS_DECOMMISSIONING = 'decommissioning'
Im happy to make a PR for this