Conserve/preselect the current cluster membership when editing a device #2256

Closed
opened 2025-12-29 17:24:10 +01:00 by adam · 1 comment
Owner

Originally created by @rdegez on GitHub (Jan 3, 2019).

Environment

  • NetBox version: 2.5.2

Steps to Reproduce

1 - Create a device
2 - Add the device to an existing cluster
3 - Edit the device (and observe that the cluster fields, Cluster group & cluster, are set to empty values : the currently assigned values are not recalled)
4 - Save the device without altering any field
==> The device is removed from the cluster

Expected Behavior

When editing a device, only a modified field should be changed after saving.

Observed Behavior

When editing a device assigned to a cluster and saving without touching anything, the device is removed from the cluster.

Originally created by @rdegez on GitHub (Jan 3, 2019). <!-- NOTE: This form is only for reproducible bugs. If you need assistance with NetBox installation, or if you have a general question, DO NOT open an issue. Instead, post to our mailing list: https://groups.google.com/forum/#!forum/netbox-discuss Please describe the environment in which you are running NetBox. Be sure that you are running an unmodified instance of the latest stable release before submitting a bug report. --> ### Environment * NetBox version: 2.5.2 <!-- Describe in detail the steps that someone else can take to reproduce this bug using the current stable release of NetBox (or the current beta release where applicable). --> ### Steps to Reproduce 1 - Create a device 2 - Add the device to an existing cluster 3 - Edit the device (and observe that the cluster fields, `Cluster group` & `cluster`, are set to empty values : the currently assigned values are not recalled) 4 - Save the device without altering any field ==> The device is removed from the cluster <!-- What did you expect to happen? --> ### Expected Behavior When editing a device, only a modified field should be changed after saving. <!-- What happened instead? --> ### Observed Behavior When editing a device assigned to a cluster and saving without touching anything, the device is removed from the cluster.
adam added the type: bugstatus: accepted labels 2025-12-29 17:24:10 +01:00
adam closed this issue 2025-12-29 17:24:10 +01:00
Author
Owner

@jeremystretch commented on GitHub (Jan 4, 2019):

This seems to occur only when the assigned cluster belongs to a cluster group.

@jeremystretch commented on GitHub (Jan 4, 2019): This seems to occur only when the assigned cluster belongs to a cluster group.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#2256