VLANGroup CSV Import broken #5153

Closed
opened 2025-12-29 19:24:51 +01:00 by adam · 1 comment
Owner

Originally created by @sdktr on GitHub (Aug 6, 2021).

Originally assigned to: @jeremystretch on GitHub.

NetBox version

v2.11.10

Python version

3.8

Steps to Reproduce

  1. Import VLANGroup CSV using this content
name,slug,scope_type,scope_id
DM-NYC,DMNYC,site,1

Expected Behavior

New Vlangroup, scoped to Site with id 1 is created.
The prefered behavior would be that scope could refer other attributes then 'id'. Like the other import options that have 'accessors':

name,slug,scope_type,scope.name
DM-NYC,DMNYC,site,mysitename

Observed Behavior

Error is trown:

Row 1 scope_type: Select a valid choice. That choice is not one of the available choices.
Row 1 all: Cannot set scope_id without scope_type.

This bug is a follow up of: https://github.com/netbox-community/netbox/discussions/6897

Originally created by @sdktr on GitHub (Aug 6, 2021). Originally assigned to: @jeremystretch on GitHub. ### NetBox version v2.11.10 ### Python version 3.8 ### Steps to Reproduce 1. Import VLANGroup CSV using this content ``` name,slug,scope_type,scope_id DM-NYC,DMNYC,site,1 ``` ### Expected Behavior New Vlangroup, scoped to Site with id 1 is created. The prefered behavior would be that scope could refer other attributes then 'id'. Like the other import options that have 'accessors': ``` name,slug,scope_type,scope.name DM-NYC,DMNYC,site,mysitename ``` ### Observed Behavior Error is trown: > Row 1 scope_type: Select a valid choice. That choice is not one of the available choices. > Row 1 __all__: Cannot set scope_id without scope_type. This bug is a follow up of: https://github.com/netbox-community/netbox/discussions/6897
adam added the type: bugstatus: accepted labels 2025-12-29 19:24:51 +01:00
adam closed this issue 2025-12-29 19:24:51 +01:00
Author
Owner

@jeremystretch commented on GitHub (Aug 9, 2021):

This is a bug, however the input value for scope_type should be dcim.site, not site.

@jeremystretch commented on GitHub (Aug 9, 2021): This is a bug, however the input value for `scope_type` should be `dcim.site`, not `site`.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#5153