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

Support site_id as filter type for data_source_netbox_prefixes #397

Merged
merged 2 commits into from
May 26, 2023

Conversation

tagur87
Copy link
Contributor

@tagur87 tagur87 commented May 10, 2023

We need the ability to filter prefixes on their site_id. This adds the functionality that is documented in netbox here: http://localhost:8001/api/schema/swagger-ui/#/ipam/ipam_prefixes_list

@tagur87
Copy link
Contributor Author

tagur87 commented May 10, 2023

@fbreckle - simple PR to add support for a filter we need. Thanks for reviewing!

@fbreckle
Copy link
Collaborator

Please include the functionality in a test

@fbreckle fbreckle marked this pull request as draft May 11, 2023 07:51
We need the ability to filter prefixes on their site_id. This adds
the functionality that is documented in netbox here:
http://localhost:8001/api/schema/swagger-ui/#/ipam/ipam_prefixes_list

Added testing to validate the filtering by site_id works as expected
@tagur87 tagur87 force-pushed the prefixes-site_id branch from 33bdb12 to 6492b9e Compare May 11, 2023 12:59
@tagur87
Copy link
Contributor Author

tagur87 commented May 11, 2023

@fbreckle I have updated the tests to account for this new filter.

@tagur87 tagur87 marked this pull request as ready for review May 11, 2023 13:00
Added additional description fields with information about filters and
the filter types that are currently supported.
@tagur87 tagur87 force-pushed the prefixes-site_id branch from 560b7a2 to eae7503 Compare May 16, 2023 14:43
@tagur87
Copy link
Contributor Author

tagur87 commented May 16, 2023

The ci tests fail randomly sometimes. force pushing an amended commit to hopefully fix.

@tagur87
Copy link
Contributor Author

tagur87 commented May 16, 2023

Checks passing. @fbreckle - ready for final review.

@tagur87
Copy link
Contributor Author

tagur87 commented May 25, 2023

Are you able to merge this one as well @fbreckle

@fbreckle fbreckle merged commit ebf31b3 into e-breuninger:master May 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants