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

Closed
opened 2025-12-29 20:46:54 +01:00 by adam · 1 comment
Owner

Originally created by @Faabvk on GitHub (Feb 6, 2024).

Originally assigned to: @jeremystretch on GitHub.

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

Originally created by @Faabvk on GitHub (Feb 6, 2024). Originally assigned to: @jeremystretch on GitHub. ### 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
adam added the type: bugstatus: acceptedseverity: low labels 2025-12-29 20:46:54 +01:00
adam closed this issue 2025-12-29 20:46:55 +01:00
Author
Owner

@Faabvk commented on GitHub (Feb 6, 2024):

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

@Faabvk commented on GitHub (Feb 6, 2024): I was able to reproduce the issue on the public Netbox demo. ~https://demo.netbox.dev/virtualization/virtual-machines/544/interfaces/~ (expired)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#9202