Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inventory templates #8118

Closed
PieterL75 opened this issue Dec 20, 2021 · 3 comments
Closed

Inventory templates #8118

PieterL75 opened this issue Dec 20, 2021 · 3 comments
Assignees
Labels
status: accepted This issue has been accepted for implementation type: feature Introduction of new functionality to the application
Milestone

Comments

@PieterL75
Copy link
Contributor

NetBox version

v3.1.0

Feature type

Data model extension

Proposed functionality

Proposal is to create Inventory Templates that allow us to define an inventory item basics,
The device inventory item will need a reference to the template and extended with unique fields like serial numbers

Use case

In devices, the inventory can be updated by manually entering the Manu/Partid/name,...
Lots of parts are used multiple times in different devices (like in servers :CPU types, Memory or in routers/switches, linecards, routing engines,...),
It will keep the inventory 'clean' of typo's, garbage, ...
The inventory items can be limited to the only those that are allowed.

Database changes

A new model is required
dcim.inventory_template

  • Name
  • Manufacturer (dcim.manufacturer)
  • PartID

The dcim.inventory_item needs to be updated
Remove

  • Manufacturer (dcim.manufacturer)
  • PartID
    Add
  • Inventory_template (dcim.inventory_template)

There is no need to enforce the Manufacturer to be the same as or limit to the device the inventory item is added to.

External dependencies

No response

@PieterL75 PieterL75 added the type: feature Introduction of new functionality to the application label Dec 20, 2021
@jeremystretch jeremystretch added the status: under review Further discussion is needed to determine this issue's scope and/or implementation label Dec 20, 2021
@jeremystretch
Copy link
Member

There is no need to enforce the Manufacturer to be the same as or limit to the device the inventory item is added to.

We wouldn't remove the manufacturer assignment as part of this. The InventoryItemTemplate model would replicate the manufacturer field and set its value upon the instantiation of new InventoryItems.

@PieterL75
Copy link
Contributor Author

What I meant is, that it should be possible to (for example) put an Samung HD in a Dell server.
That there should be no restriction in the Manufacturer of the Inventory item and the device

@jeremystretch
Copy link
Member

It's a bit quick, but I think it makes sense to tackle this in v3.2 as it fits in nicely with some of our other milestones (#3087 and #7846).

@jeremystretch jeremystretch added status: accepted This issue has been accepted for implementation and removed status: under review Further discussion is needed to determine this issue's scope and/or implementation labels Dec 27, 2021
@jeremystretch jeremystretch added this to the v3.2 milestone Dec 27, 2021
@jeremystretch jeremystretch self-assigned this Dec 29, 2021
jeremystretch added a commit that referenced this issue Dec 29, 2021
jeremystretch added a commit that referenced this issue Dec 29, 2021
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 30, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
status: accepted This issue has been accepted for implementation type: feature Introduction of new functionality to the application
Projects
None yet
Development

No branches or pull requests

2 participants