Replies: 2 comments 2 replies
-
Hey, Just a heads-up - this might be doable without a new feature by using Custom Validation. With that, it’s possible to restrict changes to a device based on a custom boolean field (e.g., a “locked” flag), or even based on certain |
Beta Was this translation helpful? Give feedback.
-
NetBox has a built-in safeguard to prevent this from happening. Whenever an object is edited in the UI, NetBox checks whether the object has been modified since the edit form was rendered. If it has been, a validation error is raised. However, it seems this isn't currently being enforced for devices specifically (and potentially other models) as the |
Beta Was this translation helpful? Give feedback.
-
Hey,
I tried to open a issue requesting a feature, but github is erroring when I tried to create 😕
The idea is to have a
locked
boolean column ondcim_device
table. When set to true, it should prevent changes on any Device fields, via UI and API. We could have a Lock/Unlock button on the device's detail page, or even allowing to change only this field on the form would do the trick. On the device list, we could have a lock icon or something like that to indicate that the device is locked and can't be changed.The reason I'm requesting this, is to prevent accidental changes. Sometimes, a engineer is working on a device, and a second one makes changes to it, disrupting the work. By locking the device, the second engineer would know that someone is using this device, and it won't disrupt the work.
Saw a similar discussion, but with no replies...
WDYT?
Beta Was this translation helpful? Give feedback.
All reactions