Linking interfaces with inventory items #2081

Closed
opened 2025-12-29 17:22:06 +01:00 by adam · 1 comment
Owner

Originally created by @swwolf on GitHub (Nov 1, 2018).

Proposed Functionality

Hi there, I'd like to be able to link interfaces to one inventory item of the device.

Use Case

Interfaces have a mac address as an identifier and I know netbox is not an inventory system but since we have inventory items it would be nice to put them to good use here 😃 . For instance think of replacing a broken nic, if you could link it to an inventory item you get serial number and part id for the interface. Note that you need to be able to link multiple interfaces to one inventory item (e.g. motherboards provide oob + nic). The feature would be optional to use and I think it would be pretty painless to implement.

Database Changes

Interface model needs a relational field to inventory items

Originally created by @swwolf on GitHub (Nov 1, 2018). <!-- Describe in detail the new functionality you are proposing. Include any specific changes to work flows, data models, or the user interface. --> ### Proposed Functionality Hi there, I'd like to be able to link interfaces to one inventory item of the device. <!-- Convey an example use case for your proposed feature. Write from the perspective of a NetBox user who would benefit from the proposed functionality and describe how. ---> ### Use Case Interfaces have a mac address as an identifier and I know netbox is not an inventory system but since we have inventory items it would be nice to put them to good use here :smiley: . For instance think of replacing a broken nic, if you could link it to an inventory item you get serial number and part id for the interface. Note that you need to be able to link multiple interfaces to one inventory item (e.g. motherboards provide oob + nic). The feature would be optional to use and I think it would be pretty painless to implement. <!-- Note any changes to the database schema necessary to support the new feature. For example, does the proposal require adding a new model or field? (Not all new features require database changes.) ---> ### Database Changes Interface model needs a relational field to inventory items <!-- List any new dependencies on external libraries or services that this new feature would introduce. For example, does the proposal require the installation of a new Python package? (Not all new features introduce new dependencies.) -->
adam closed this issue 2025-12-29 17:22:06 +01:00
Author
Owner

@jeremystretch commented on GitHub (Nov 1, 2018):

This behavior would be out of scope for NetBox. The InventoryItem model exists only to represent modular components currently installed within a device.

@jeremystretch commented on GitHub (Nov 1, 2018): This behavior would be out of scope for NetBox. The InventoryItem model exists only to represent modular components currently installed within a device.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#2081