-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Device Type Clones #4065
Comments
I think this is expected behavior, so set enhancement label for this |
Cloning merely pre-populates the form fields when creating a new object, based on the properties of the current object; it doesn't consider related objects at all. This behavior is global for all clonable objects in NetBox. For example, when you clone a VLAN, it doesn't replicate all the assigned VLANs. Implementing this would require an entirely new view class. I don't really see it being worth development effort, particularly because a) device types typically don't have the same exact set of components, so you'll usually need to do some manual work anyway, and b) device types can be exported and imported in YAML format very quickly and easily. |
It would be nice if you were able to have interfaces/power ports/etc. added to the clone as well. It would take almost no time to recreate the values under the current behavior, but would save minutes per device if we were able to clone interfacing options as well. What has taken us the most time to document is setting up device types to populate the rack elevations, and this change of behavior would drastically reduce that time as most of our switches and servers are very similar and would only require minor tweaks after a clone. If you did a YAML export, it looks like it exported all device types in a single file instead of just a selected object. When you import, would you import a single device type, or would you have to re-import the entire list? |
I don't have anything to add beyond my comment above, and it looks like no one else does either, so I'm going to close this out.
Import is currently a single device type at a time. This is likely to change in the near future. |
Environment
Steps to Reproduce
Expected Behavior
When a device profile is cloned, it was expected that all the properties of that device type would clone, including interfaces.
Observed Behavior
The only thing that cloned was the Manufacturer name.
References
#33 and #3938
The text was updated successfully, but these errors were encountered: