netbox-community / netbox

The premier source of truth powering network automation. Open source under Apache 2. Try NetBox Cloud free: https://netboxlabs.com/free-netbox-cloud/
http://netboxlabs.com/oss/netbox/
Apache License 2.0
16.36k stars 2.6k forks source link

Bulk Import of Racks based on Rack Type #17465

Open jonzey0 opened 2 months ago

jonzey0 commented 2 months ago

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

duckw commented 2 months ago

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.