ValueError when listing IP Addresses inside Prefix #5883

Closed
opened 2025-12-29 19:33:51 +01:00 by adam · 1 comment
Owner

Originally created by @fknorn on GitHub (Jan 5, 2022).

NetBox version

v3.1.4

Python version

3.8

Steps to Reproduce

  1. Open prefix
  2. Click "IP Addresses" tab
  3. If (and only if) the prefix has one or more IPs, the following error is thrown:
<class 'ValueError'>

'role' does not resolve to an item that supports prefetching - this is an invalid parameter to prefetch_related().

Python version: 3.8.10
NetBox version: 3.1.4

Expected Behavior

The page should show as expected, and as it did prior to this update (I believe I was on 3.1.1 before, there everything worked fine).

Observed Behavior

Error message show above.

Originally created by @fknorn on GitHub (Jan 5, 2022). ### NetBox version v3.1.4 ### Python version 3.8 ### Steps to Reproduce 1. Open prefix 2. Click "IP Addresses" tab 3. If (and only if) the prefix has one or more IPs, the following error is thrown: ``` <class 'ValueError'> 'role' does not resolve to an item that supports prefetching - this is an invalid parameter to prefetch_related(). Python version: 3.8.10 NetBox version: 3.1.4 ``` ### Expected Behavior The page should show as expected, and as it did prior to this update (I believe I was on 3.1.1 before, there everything worked fine). ### Observed Behavior Error message show above.
adam added the type: bugstatus: duplicate labels 2025-12-29 19:33:51 +01:00
adam closed this issue 2025-12-29 19:33:51 +01:00
Author
Owner

@jeremystretch commented on GitHub (Jan 5, 2022):

Thank you for submitting this issue, however it appears that this topic has already been raised. Please see issue #8213 for further discussion.

@jeremystretch commented on GitHub (Jan 5, 2022): Thank you for submitting this issue, however it appears that this topic has already been raised. Please see issue #8213 for further discussion.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#5883