Skip to content

Conversation

michaelarnauts
Copy link
Contributor

Fixes: #11150

  • Add primary_ip4 and primary_ip6 to the DeviceFilterSet
  • Add tests to query based on those fields

@jeremystretch
Copy link
Member

Thanks @michaelarnauts! I've extended your tests just a bit to test querying multiple IDs, but this is great!

@jeremystretch jeremystretch merged commit 5d22260 into netbox-community:develop Jan 5, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 5, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add a filter for device.primary_ip4 and primary_ip6 to the REST API / graphQL

2 participants