Skip to content

Moving a module between devices doesn't move it's associated components #10513

@cpmills1975

Description

@cpmills1975

NetBox version

v3.3.4

Python version

3.10

Steps to Reproduce

  1. Create a device and add some module bays and no interfaces
  2. Create a second device and add some module bays and no interfaces
  3. Create a module type and add some interfaces to the module template
  4. Add a new module to a device making sure "Replicate components" is selected
  5. Observe that the device has the module inserted and that the interfaces on the device belong to the module
  6. Edit the module and move it to a bay in the second device
  7. Observe the interfaces table for both devices, the interfaces instantiated at 4 remain on the first device associated with the module that is now in the second device and that there is still no interfaces on the second device
  8. Observe that the modules table for the second device shows the module. Clicking on that module and viewing it's associated interfaces indicate that those interfaces remain associated with the first device.

Expected Behavior

Ideally changing the device to which a module is associated should move the interfaces to the new device. At a minimum, removing the association between between a device and an instance of a module should disassociate the interfaces generated from the module, perhaps leaving them as 'standalone' interfaces lest there be documented cables that need to be cleared up. Perhaps it should be impossible to remove a module while there are connected components associated with that module?

Observed Behavior

Interfaces (and perhaps other component types) remain associated with a module in a device even when that module is moved to a new device.

Metadata

Metadata

Assignees

Labels

status: acceptedThis issue has been accepted for implementationtype: bugA confirmed report of unexpected behavior in the application

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions