Add scope_name field when doing bulk ipam.prefixes imports #18462
Labels
status: needs triage
This issue is awaiting triage by a maintainer
type: feature
Introduction of new functionality to the application
NetBox version
v4.2.2
Feature type
Change to existing functionality
Proposed functionality
Add
scope_name
in addition or as alternative field toscope_id
when doing builkipam.prefix
(and others) imports.Use case
Before updating from v4.1 to v4.2 we noticed the breaking change about the removal of the
site
field which got replaced by a combination ofscope_type
andscope_id
. I don't question the need for the multipe scope types, but to have a better migration when doing bulk imports it would be nice to have ascope_name
field in addition toscope_id
. Of course you can only have one field filled (id or name).Sure this would cause an id-lookup when scope_name is used (like in v4.1) but it would help the transition (we would just have to add scope_type=dcim.site and rename the csv field site to scope_name and continue instead of using numeric ids during mass imports.
Database changes
Not that I know of
External dependencies
None
The text was updated successfully, but these errors were encountered: