Can't create inventory items module on interface #6153

Closed
opened 2025-12-29 19:37:24 +01:00 by adam · 0 comments
Owner

Originally created by @mmfreitas on GitHub (Feb 28, 2022).

Originally assigned to: @jeremystretch on GitHub.

NetBox version

v3.2.0-beta1

Python version

3.9

Steps to Reproduce

This was tested on the beta-demo.netbox.dev with the following data:

  1. Navigate to device 'dmi01-akron-rtr01' and click on interfaces tab
  2. Click the '+' icon and try to add and inventory item on interface 'GigabitEthernet0/0/0'
  3. Notice it says device type and module type on top of the form (is this intended?)
  4. Click 'Module Type'
  5. Fill name with 'SFP'

Expected Behavior

Expected to create a module with name 'SFP' on interface 'GigabitEthernet0/0/0' of device 'dmi01-akron-rtr01'

Observed Behavior

Returns two errors:

  1. Device: This field is required;
  2. Name: This field is required;

Looking at the url ?device=&component_type=32&component_id=1&return_url=/dcim/devices/1/interfaces/
It seems that the device is not getting passed as an argument.

If I go to GigabitEthernet0/0/0 menu, click on the '+ Add inventory item' and fill the name with 'SFP' it seems to work fine.

Originally created by @mmfreitas on GitHub (Feb 28, 2022). Originally assigned to: @jeremystretch on GitHub. ### NetBox version v3.2.0-beta1 ### Python version 3.9 ### Steps to Reproduce This was tested on the [beta-demo.netbox.dev](https://beta-demo.netbox.dev/) with the following data: 1. Navigate to device 'dmi01-akron-rtr01' and click on interfaces tab 2. Click the '+' icon and try to add and inventory item on interface 'GigabitEthernet0/0/0' 4. Notice it says device type and module type on top of the form (is this intended?) 5. Click 'Module Type' 6. Fill name with 'SFP' ### Expected Behavior Expected to create a module with name 'SFP' on interface 'GigabitEthernet0/0/0' of device 'dmi01-akron-rtr01' ### Observed Behavior Returns two errors: 1. Device: This field is required; 2. Name: This field is required; Looking at the url `?device=&component_type=32&component_id=1&return_url=/dcim/devices/1/interfaces/` It seems that the device is not getting passed as an argument. If I go to [GigabitEthernet0/0/0](https://beta-demo.netbox.dev/dcim/interfaces/1/) menu, click on the '+ Add inventory item' and fill the name with 'SFP' it seems to work fine.
adam added the type: bugstatus: acceptedbeta labels 2025-12-29 19:37:24 +01:00
adam closed this issue 2025-12-29 19:37:24 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#6153