Add filter to dcim.devices API to search for device by rack+elevation #1456

Closed
opened 2025-12-29 16:32:17 +01:00 by adam · 0 comments
Owner

Originally created by @wenners on GitHub (Dec 14, 2017).

Issue type

[x] Feature request
[ ] Bug report
[ ] Documentation

Environment

  • Python version: 2.7.5
  • NetBox version: 2.3-develop

Description

A detailed description of the proposed functionality

Add a filter to the dcim.devices API to filter for rack postion.

A use case for the new feature

We are currently filling netbox with data from our DC with data from various sources. From one source we get info about asset data, from another on system configs. The only way to identify a device is most of the time by rack + eleavation, hostnames do not match unfortunately across tools. Therefore this filter in the API would be needed to match a device by rack & elevation.

A rough description of any necessary changes to the database schema

Small code modification is needed to netbox/netbox/dcim/filters.py. If wanted I can create a pull request for it.

Any relevant third-party libraries which would be needed

none

Originally created by @wenners on GitHub (Dec 14, 2017). ### Issue type [x] Feature request [ ] Bug report [ ] Documentation ### Environment * Python version: 2.7.5 * NetBox version: 2.3-develop ### Description #### A detailed description of the proposed functionality Add a filter to the dcim.devices API to filter for rack postion. #### A use case for the new feature We are currently filling netbox with data from our DC with data from various sources. From one source we get info about asset data, from another on system configs. The only way to identify a device is most of the time by rack + eleavation, hostnames do not match unfortunately across tools. Therefore this filter in the API would be needed to match a device by rack & elevation. #### A rough description of any necessary changes to the database schema Small code modification is needed to netbox/netbox/dcim/filters.py. If wanted I can create a pull request for it. #### Any relevant third-party libraries which would be needed none
adam added the type: feature label 2025-12-29 16:32:17 +01:00
adam closed this issue 2025-12-29 16:32:17 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#1456