netbox-community / netbox

The premier source of truth powering network automation. Open source under Apache 2. Try NetBox Cloud free: https://netboxlabs.com/free-netbox-cloud/
http://netboxlabs.com/oss/netbox/
Apache License 2.0
16.33k stars 2.6k forks source link

Allow Filtering IP Addresses by Related Virtual Machine Role #18058

Open robduffy2010 opened 1 day ago

robduffy2010 commented 1 day ago

NetBox version

v4.1.6

Feature type

New functionality

Triage priority

I volunteer to perform this work (if approved)

Proposed functionality

Right, now it's possible to filter an IP address by it's related virtual machine name or ID. We would like to be able to also filter by the related virtual machine role.

https://github.com/netbox-community/netbox/blob/develop/netbox/ipam/filtersets.py#L613

Use case

It can be very convenient to find all IPs connected to VMs with a particular role. For example, all Radius, AD or DNS server IP addresses.

Database changes

NA

External dependencies

NA