netbox
netbox copied to clipboard
Wrong filter used when clicking number of IP addresses in VM Interface table
Deployment Type
Self-hosted
NetBox Version
v3.7.2
Python Version
3.8
Steps to Reproduce
Make sure you use a Virtual Machine, that has an interface with 3 or more IP addresses assigned to it.
- Go to a Virtual Machine page
- Go to interfaces tab
- There should be an interface with 3 or more IP addresses a. Instead of it showing the individual IP addresses in the table, it will show you the number of IP addresses. (Clickable link)
- Click link with number of IP addresses
Expected Behavior
It should link you to a filtered page that shows the IP addresses associated with the VM Interface
Observed Behavior
It links you to the right page, but as observed in the URL, it uses the wrong filter and attempts to filter for "regular" physical interfaces, so it gives you either an empty set of results, or the wrong results.
Example URL: https://netbox.xxxxxxx/ipam/ip-addresses/?interface_id=195
I was able to reproduce the issue on the public Netbox demo. ~https://demo.netbox.dev/virtualization/virtual-machines/544/interfaces/~ (expired)