Skip to content

Prefix CSV Import: Problem with VLANs #6006

@Qumoo

Description

@Qumoo

NetBox version

v2.10.6

Python version

3.7.3

Steps to Reproduce

  1. Create a VLAN group for one office, lets call it A (just a VLAN group without region or site)
  2. Create two VLANs one assigned to group A and one assigned to a site (in my case Test-Site) - both with id 20
  3. Try csv bulk importing with site in the csv-header
    Example CSV:
    prefix,status,vlan_group,vlan,site
    192.168.123.0/24,active,A,20,
    192.168.122.0/24,active,,20,Test-Site

Expected Behavior

It should import the prefixes since both VLANs are existing and identified.

Observed Behavior

"Row 1 vlan: Object not found"

When importing the prefixes for a VLAN that doesn't have a site assigned you need to remove the site from the csv-header.
Example CSV for importing prefixes when VLAN doesnt have a site assigned:
prefix,status,vlan_group,vlan
192.168.123.0/24,active,A,20

At the moment you would need to split your csv files to "has-a-site" and "no-site" and import separately.
Is this intended behaviour? If so could you add it to the documentation?

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