Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add scope_name field when doing bulk ipam.prefixes imports #18462

Open
dhoffend opened this issue Jan 23, 2025 · 1 comment
Open

Add scope_name field when doing bulk ipam.prefixes imports #18462

dhoffend opened this issue Jan 23, 2025 · 1 comment
Labels
status: needs triage This issue is awaiting triage by a maintainer type: feature Introduction of new functionality to the application

Comments

@dhoffend
Copy link

dhoffend commented Jan 23, 2025

NetBox version

v4.2.2

Feature type

Change to existing functionality

Proposed functionality

Add scope_name in addition or as alternative field to scope_id when doing builk ipam.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 of scope_type and scope_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 a scope_name field in addition to scope_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

@dhoffend dhoffend added status: needs triage This issue is awaiting triage by a maintainer type: feature Introduction of new functionality to the application labels Jan 23, 2025
@KPTheProf
Copy link

I second this request, not been able to import using the scope name is major headache for us.
Users will only have the scope name data (i.e. site name if importing a dcim.site), the scope_id is just an internal reference.
I don't understand why this was changed to scope_id in the first place!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: needs triage This issue is awaiting triage by a maintainer type: feature Introduction of new functionality to the application
Projects
None yet
Development

No branches or pull requests

2 participants