Add an option to adopt existing DeviceComponents when installing modules #6437

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

Originally created by @kkthxbye-code on GitHub (May 2, 2022).

Originally assigned to: @kkthxbye-code on GitHub.

NetBox version

v3.2.2

Feature type

Change to existing functionality

Proposed functionality

Add an option to adopt existing DeviceComponents when installing modules. The option would change the module of all DeviceComponents on the target device with the same name as the component being added by the module.

Use case

Making it easier to migrate to using modules for devices with manually added DeviceComponents.

Database changes

None.

External dependencies

None.

Originally created by @kkthxbye-code on GitHub (May 2, 2022). Originally assigned to: @kkthxbye-code on GitHub. ### NetBox version v3.2.2 ### Feature type Change to existing functionality ### Proposed functionality Add an option to adopt existing DeviceComponents when installing modules. The option would change the module of all DeviceComponents on the target device with the same name as the component being added by the module. ### Use case Making it easier to migrate to using modules for devices with manually added DeviceComponents. ### Database changes None. ### External dependencies None.
adam added the status: acceptedtype: feature labels 2025-12-29 19:40:43 +01:00
adam closed this issue 2025-12-29 19:40:43 +01:00
Author
Owner

@jeremystretch commented on GitHub (May 3, 2022):

I like it. We should end up with four possible conditions depending on which boxes are checked:

Replicate Adopt Result
- - No components get created or updated
x - New components get created but existing components are unmodified
- x Existing components with matching names are assigned to the module, but no new components are created
x x If a matching component exists, assign it to the module; otherwise create a new one
@jeremystretch commented on GitHub (May 3, 2022): I like it. We should end up with four possible conditions depending on which boxes are checked: | Replicate | Adopt | Result | |---|---|---| | - | - | No components get created or updated | | x | - | New components get created but existing components are unmodified | | - | x | Existing components with matching names are assigned to the module, but no new components are created | | x | x | If a matching component exists, assign it to the module; otherwise create a new one |
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#6437