-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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 filters by primary_ips to VirtualMachine, VirtualDeviceContext models #13936
Comments
On both the models you have |
@abhi1693 I want to add the same functionality as on For example, I have address 1.1.1.1/24 in NetBox, with |
These filters were added to DeviceFilterSet under #11150 but for some reason not replicated for virtual machines. |
@jeremystretch you can assign this issue to me |
…lDeviceContext filtersets (netbox-community#13936)
…ine and VirtualDeviceContext filtersets (#14203) * Add primary_ip4 and primary_ip6 filters for VirtualMachine and VirtualDeviceContext filtersets (#13936) * Add PrimaryIPFilterSet to __all__ --------- Co-authored-by: Artem I. Kotik <artem.i.kotik@ringcentral.com> Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
NetBox version
v3.6.3
Feature type
Change to existing functionality
Proposed functionality
At this moment you can't filter virtual machines and virtual device contexts by
primary_ip4
andprimary_ip6
fields.Use case
At my job, we have a workaround when we need to find a virtual machine by primary IP address. Also, I've noticed that
VirtualDeviceContext
model does not have these filters.It would be great to add this functionality, I can create PR with this feature.
Database changes
No
External dependencies
No
The text was updated successfully, but these errors were encountered: