Skip to content
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

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

Closed
wenners opened this issue Dec 14, 2017 · 0 comments
Closed

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

wenners opened this issue Dec 14, 2017 · 0 comments
Labels
type: feature Introduction of new functionality to the application

Comments

@wenners
Copy link

wenners commented 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

@jeremystretch jeremystretch added the type: feature Introduction of new functionality to the application label Dec 14, 2017
@lock lock bot locked as resolved and limited conversation to collaborators Jan 17, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type: feature Introduction of new functionality to the application
Projects
None yet
Development

No branches or pull requests

2 participants