Associating inventory item with component #11085
-
I may be being dense here. I know it was possible in the past to install an Inventory Item in a device, and associate it with a particular Component. (For example, an SFP module inserted into a specific Interface). There is still a "Component" column available in the list of Inventory Items on a device, e.g. However with 3.3.9, when I add a new inventory item or edit an existing inventory item, I cannot see how to associate it with a particular component. What am I missing? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
The only way to associate an inventory item with a component through the UI is to go to the component detail view and press "add inventory item". The most logical way would be to edit the inventory item and assign the related component. I didn't implement the association, but my guess as to why it wasn't done is that the relationship is a generic foreign key, which makes UI selection hard as you would have to do something like this: But for all component types. We can't do a single dropdown as there's no single endpoint for getting device components. I do think we need a solution though, so feel free to create a FR. Maybe @jeremystretch knows a magic solution. |
Beta Was this translation helpful? Give feedback.
The only way to associate an inventory item with a component through the UI is to go to the component detail view and press "add inventory item". The most logical way would be to edit the inventory item and assign the related component. I didn't implement the association, but my guess as to why it wasn't done is that the relationship is a generic foreign key, which makes UI selection hard as you would have to do something like this:
But for all component types. We can't do a single dropdown as there's no single endpoint…