-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Closed
Labels
status: acceptedThis issue has been accepted for implementationThis issue has been accepted for implementationtype: bugA confirmed report of unexpected behavior in the applicationA confirmed report of unexpected behavior in the application
Description
NetBox version
v2.10.6
Python version
3.7.3
Steps to Reproduce
- Create a VLAN group for one office, lets call it A (just a VLAN group without region or site)
- Create two VLANs one assigned to group A and one assigned to a site (in my case Test-Site) - both with id 20
- 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 implementationThis issue has been accepted for implementationtype: bugA confirmed report of unexpected behavior in the applicationA confirmed report of unexpected behavior in the application