Skip to content

Import of Inventory Items fails when multiple devices with same name exists #11902

@AnythingOverIP

Description

@AnythingOverIP

NetBox version

v3.4.3

Python version

3.8

Steps to Reproduce

  1. Create a device with name "test" in a site (i.e. Site_A)
  2. Create a second device with same name in another site (i.e. Site_B)
  3. Create a simple bulk import :

       device,name,serial
       test,hard_disk,12345

  1. Submit via /dcim/inventory-items/import/

Expected Behavior

A warning toast notification should tell us that import line 1 has more than one "target".

Observed Behavior

InventoryItem has no device:
image

When you load multiple lines, it's not telling you where the issue is.

Ideally, there should be a site field in the import options to ensure we target the right device.

Metadata

Metadata

Assignees

Labels

status: acceptedThis issue has been accepted for implementationtype: bugA confirmed report of unexpected behavior in the application

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions