netbox icon indicating copy to clipboard operation
netbox copied to clipboard

Wrong filter used when clicking number of IP addresses in VM Interface table

Open Faabvk opened this issue 2 years ago • 1 comments

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.

  1. Go to a Virtual Machine page
  2. Go to interfaces tab
  3. 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)
  4. 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

Faabvk avatar Feb 06 '24 13:02 Faabvk

I was able to reproduce the issue on the public Netbox demo. ~https://demo.netbox.dev/virtualization/virtual-machines/544/interfaces/~ (expired)

Faabvk avatar Feb 06 '24 16:02 Faabvk