Bulk Import of Racks based on Rack Type #10231

Closed
opened 2025-12-29 21:28:39 +01:00 by adam · 3 comments
Owner

Originally created by @jonzey0 on GitHub (Sep 12, 2024).

Originally assigned to: @pl0xym0r on GitHub.

NetBox version

v4.1.0

Feature type

Change to existing functionality

Proposed functionality

With the new feature to introduce Rack Types into NetBox. It'd be useful if we could then refer to these Rack Types when doing a Bulk Import of Racks.

Currently the Field Options do not allow for the Rack Type to be used in place of specifying the Post Width and Rack Height in RU, which means that when performing a Bulk Import or Creation of racks, they all have to be defined separately.

This both means that the Rack Types can't be used when performing a first-time database setup, and every rack needs to be defined manually. Also means that the Racks aren't associated with a Rack Type when using this method.

Use case

This would enable users to do a Bulk Import of Racks into their NetBox environment (either via API or the GUI) using the Rack Type as a template, rather than having to define the parameters manually for each record. This is a particular use case for new environments being managed by NetBox, who may require a large number of Racks to be populated as part of their initial setup.

This would also enable all the Racks created under this method to be linked to a Rack Type which would help improve the consistency of NetBox data for users.

Database changes

No response

External dependencies

No response

Originally created by @jonzey0 on GitHub (Sep 12, 2024). Originally assigned to: @pl0xym0r on GitHub. ### NetBox version v4.1.0 ### Feature type Change to existing functionality ### Proposed functionality With the new feature to introduce Rack Types into NetBox. It'd be useful if we could then refer to these Rack Types when doing a Bulk Import of Racks. Currently the Field Options do not allow for the Rack Type to be used in place of specifying the Post Width and Rack Height in RU, which means that when performing a Bulk Import or Creation of racks, they all have to be defined separately. This both means that the Rack Types can't be used when performing a first-time database setup, and every rack needs to be defined manually. Also means that the Racks aren't associated with a Rack Type when using this method. ### Use case This would enable users to do a Bulk Import of Racks into their NetBox environment (either via API or the GUI) using the Rack Type as a template, rather than having to define the parameters manually for each record. This is a particular use case for new environments being managed by NetBox, who may require a large number of Racks to be populated as part of their initial setup. This would also enable all the Racks created under this method to be linked to a Rack Type which would help improve the consistency of NetBox data for users. ### Database changes _No response_ ### External dependencies _No response_
adam added the status: acceptedtype: featurenetboxcomplexity: low labels 2025-12-29 21:28:39 +01:00
adam closed this issue 2025-12-29 21:28:40 +01:00
Author
Owner

@duckw commented on GitHub (Sep 12, 2024):

If this could also be extended to cover the Bulk Edit capability as well, for all the reasons listed above. Happy to log this separately if it is more appropriate.

@duckw commented on GitHub (Sep 12, 2024): If this could also be extended to cover the Bulk Edit capability as well, for all the reasons listed above. Happy to log this separately if it is more appropriate.
Author
Owner

@jeremystretch commented on GitHub (Dec 9, 2024):

@pl0xym0r could you please comment here so I can assign the FR to you for your PR?

@jeremystretch commented on GitHub (Dec 9, 2024): @pl0xym0r could you please comment here so I can assign the FR to you for your PR?
Author
Owner

@pl0xym0r commented on GitHub (Dec 10, 2024):

fix by #18077

@pl0xym0r commented on GitHub (Dec 10, 2024): fix by #18077
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#10231