Make the Device Component Bulk Renaming Form allow empty replacements #6148

Closed
opened 2025-12-29 19:37:22 +01:00 by adam · 2 comments
Owner

Originally created by @991jo on GitHub (Feb 28, 2022).

Originally assigned to: @jeremystretch on GitHub.

NetBox version

v3.1.8

Feature type

Change to existing functionality

Proposed functionality

Allow an empty replacement string in the bulk rename form.

Use case

Removing parts of a component name without having a replacement is currently not allowed, because the form requires a replacement.

e.g. all components are called "MPO-A", "MPO-B", ... and have to be renamed to "A", "B" ...

Database changes

none.

External dependencies

none.

Originally created by @991jo on GitHub (Feb 28, 2022). Originally assigned to: @jeremystretch on GitHub. ### NetBox version v3.1.8 ### Feature type Change to existing functionality ### Proposed functionality Allow an empty replacement string in the bulk rename form. ### Use case Removing parts of a component name without having a replacement is currently not allowed, because the form requires a replacement. e.g. all components are called "MPO-A", "MPO-B", ... and have to be renamed to "A", "B" ... ### Database changes none. ### External dependencies none.
adam added the status: acceptedtype: feature labels 2025-12-29 19:37:22 +01:00
adam closed this issue 2025-12-29 19:37:22 +01:00
Author
Owner

@jeremystretch commented on GitHub (Mar 1, 2022):

Allow an empty replacement string in the bulk rename form.

How, specifically, do you propose implementing this?

@jeremystretch commented on GitHub (Mar 1, 2022): > Allow an empty replacement string in the bulk rename form. How, specifically, do you propose implementing this?
Author
Owner

@991jo commented on GitHub (Mar 2, 2022):

simply allow the replacement field to be empty (as in empty string) and replacing as usual (but with an empty string).

@991jo commented on GitHub (Mar 2, 2022): simply allow the replacement field to be empty (as in empty string) and replacing as usual (but with an empty string).
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#6148