Viewing prefix ip addresses results in server error #5890

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

Originally created by @ognjen011 on GitHub (Jan 6, 2022).

NetBox version

v3.1.4

Python version

3.7

Steps to Reproduce

  1. Create ip prefix. in My case 192.168.0.0/22. Larger subnet.
  2. From the screen of ip prefix details click on ip addresses tab
  3. Results in server error.

Expected Behavior

I should see a list of ip's for that prefix.

Observed Behavior

Server Error

<class 'ValueError'>

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

Python version: 3.7.5
NetBox version: 3.1.4

Originally created by @ognjen011 on GitHub (Jan 6, 2022). ### NetBox version v3.1.4 ### Python version 3.7 ### Steps to Reproduce 1. Create ip prefix. in My case 192.168.0.0/22. Larger subnet. 2. From the screen of ip prefix details click on ip addresses tab 3. Results in server error. ### Expected Behavior I should see a list of ip's for that prefix. ### Observed Behavior Server Error <class 'ValueError'> 'role' does not resolve to an item that supports prefetching - this is an invalid parameter to prefetch_related(). Python version: 3.7.5 NetBox version: 3.1.4
adam added the type: bugstatus: duplicate labels 2025-12-29 19:33:55 +01:00
adam closed this issue 2025-12-29 19:33:55 +01:00
Author
Owner

@kkthxbye-code commented on GitHub (Jan 6, 2022):

Duplicate of https://github.com/netbox-community/netbox/issues/8213

Will be fixed in next version.

@kkthxbye-code commented on GitHub (Jan 6, 2022): Duplicate of https://github.com/netbox-community/netbox/issues/8213 Will be fixed in next version.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#5890