Skip to content

Reopen: Bulk import prefixes with associated VLAN not working when multiple VLANs with the same vid exist. #18582 #20560

@jeroendev-one

Description

@jeroendev-one

NetBox Edition

NetBox Community

NetBox Version

v4.4.2

Python Version

3.10

Steps to Reproduce

The issue seems to be returning here. When importing the prefixes bulk below I get the following error:

Record 1 vlan: "1" is not a unique value for this field; multiple objects were found
prefix;status;vlan_site;vlan;scope_type;scope_id;description
10.11.0.0/22;active;LOC02-MGMT;1;dcim.site;5;LOC02-MGMT

We have multiple sites with the same VLAN id, we re-use them same as the existing issue. However, it doesn't seem to be using the field 'vlan_site' to check whether the VLAN is unique for this one.

Expected Behavior

Import the prefixes and assign VLAN based on VLAN site and not only ID.

Observed Behavior

Unique constraint error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    severity: lowDoes not significantly disrupt application functionality, or a workaround is availablestatus: needs ownerThis issue is tentatively accepted pending a volunteer committed to its implementationtype: bugA confirmed report of unexpected behavior in the application

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions