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
15.77k stars 2.54k forks source link

Rack types #9956

Closed jose-pr closed 1 year ago

jose-pr commented 2 years ago

NetBox version

V3.2.7

Feature type

Data model extension

Proposed functionality

A base object type which includes manufacturer, model and any other fields which are can be attributed with a physical device to be used for physical devices. Current devices and racks should be based on this type.

The rack type should also include height, width, depth and the other rack fields.

Use case

Be able to accurately represent the racks and reuse their configuration when building a site.

Database changes

No response

External dependencies

No response

jeremystretch commented 2 years ago

Be able to accurately represent the racks and reuse their configuration when building a site.

This is already possible. Please detail your specific use case.

The rack type should also include height, width, depth and the other rack fields.

This would imply removing all of these fields from the rack model, which would be a rather large breaking change. What would be gained from doing so?

jose-pr commented 2 years ago

Similiar to https://github.com/netbox-community/netbox/issues/3400 i am interested in at least having Manufacturer, model. Recorded for each rack, and seeing as model of a rack will always have the same dimensions, why the need to store this information per each rack instead of just storing a reference to the type/model.

Then there could be a section in https://github.com/netbox-community/devicetype-library for a rack type.

sw8899 commented 2 years ago

I would also welcome a Rack Types library. All reasons that speak for a Device/Module Types library also apply to a Rack Types library. It is only a question of the focus of work (Network vs. Datacenter Infrastructure) whether one needs the one or the other library more.

postilion commented 1 year ago

I agree that a rack type library would be a nice thing to have. We have a couple of applications, for example, using either open-frame metal shelving (a/k/a Baker's Rack) or even "IT Workstations" or "Tech Benches" like these photos show. tech-bench kh5000-3-200-72 Although this may well lead directly to data-model hell, given how unstructured these are, compared to a normal rack.

Thanks for considering, -nic

ziggekatten commented 1 year ago

My two cents:

If it's possible to define your setup using the features in netbox, there is in my view no need to mess with it. Using the API and/or Custom Scripts is the natural way to adapt the platform to specific needs.

One thing to consider (my personal view) is to keep netbox as generic as possible, so we don't get into maintenance hell.

github-actions[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. NetBox is governed by a small group of core maintainers which means not all opened issues may receive direct feedback. Do not attempt to circumvent this process by "bumping" the issue; doing so will result in its immediate closure and you may be barred from participating in any future discussions. Please see our contributing guide.

github-actions[bot] commented 1 year ago

This issue has been automatically closed due to lack of activity. In an effort to reduce noise, please do not comment any further. Note that the core maintainers may elect to reopen this issue at a later date if deemed necessary.