Unable to sort VMs by primary_ip #4568

Closed
opened 2025-12-29 18:37:44 +01:00 by adam · 4 comments
Owner

Originally created by @stuntguy3000 on GitHub (Feb 15, 2021).

Environment

  • Python version: 3.6.8
  • NetBox version: 2.10.4

Steps to Reproduce

  1. Sort virtual machines by IP Address
    https://[address]/virtualization/virtual-machines/?sort=primary_ip

Expected Behavior

VMs to be sorted.

Observed Behavior

Application crash.

<class 'django.core.exceptions.FieldError'>

Cannot resolve keyword 'primary_ip' into field. Choices are: cluster, cluster_id, comments, created, custom_field_data, disk, id, interfaces, last_updated, local_context_data, memory, name, platform, platform_id, primary_ip4, primary_ip4_id, primary_ip6, primary_ip6_id, role, role_id, secrets, services, status, tagged_items, tags, tenant, tenant_id, vcpus

Python version: 3.6.8
NetBox version: 2.10.4

Same bug as #5597

Originally created by @stuntguy3000 on GitHub (Feb 15, 2021). <!-- NOTE: IF YOUR ISSUE DOES NOT FOLLOW THIS TEMPLATE, IT WILL BE CLOSED. This form is only for reporting reproducible bugs. If you need assistance with NetBox installation, or if you have a general question, please start a discussion instead: https://github.com/netbox-community/netbox/discussions Please describe the environment in which you are running NetBox. Be sure that you are running an unmodified instance of the latest stable release before submitting a bug report, and that any plugins have been disabled. --> ### Environment * Python version: 3.6.8 * NetBox version: 2.10.4 <!-- Describe in detail the exact steps that someone else can take to reproduce this bug using the current stable release of NetBox. Begin with the creation of any necessary database objects and call out every operation being performed explicitly. If reporting a bug in the REST API, be sure to reconstruct the raw HTTP request(s) being made: Don't rely on a client library such as pynetbox. --> ### Steps to Reproduce 1. Sort virtual machines by IP Address https://[address]/virtualization/virtual-machines/?sort=primary_ip <!-- What did you expect to happen? --> ### Expected Behavior VMs to be sorted. <!-- What happened instead? --> ### Observed Behavior Application crash. ``` <class 'django.core.exceptions.FieldError'> Cannot resolve keyword 'primary_ip' into field. Choices are: cluster, cluster_id, comments, created, custom_field_data, disk, id, interfaces, last_updated, local_context_data, memory, name, platform, platform_id, primary_ip4, primary_ip4_id, primary_ip6, primary_ip6_id, role, role_id, secrets, services, status, tagged_items, tags, tenant, tenant_id, vcpus Python version: 3.6.8 NetBox version: 2.10.4 ``` Same bug as #5597
adam added the type: bugstatus: accepted labels 2025-12-29 18:37:44 +01:00
adam closed this issue 2025-12-29 18:37:44 +01:00
Author
Owner

@Dimaqa commented on GitHub (Feb 20, 2021):

This also happens when you sort devices by primary ip

@Dimaqa commented on GitHub (Feb 20, 2021): This also happens when you sort devices by primary ip
Author
Owner

@stuntguy3000 commented on GitHub (Feb 20, 2021):

This also happens when you sort devices by primary ip

This was fixed in #5597, and is resolved in the latest release (2.10.4), see above for details.

@stuntguy3000 commented on GitHub (Feb 20, 2021): > This also happens when you sort devices by primary ip This was fixed in #5597, and is resolved in the latest release (2.10.4), see above for details.
Author
Owner

@jeremystretch commented on GitHub (Feb 24, 2021):

@stuntguy3000 I don't understand your comment above. #5819 is this issue.

@jeremystretch commented on GitHub (Feb 24, 2021): @stuntguy3000 I don't understand your comment above. #5819 is this issue.
Author
Owner

@stuntguy3000 commented on GitHub (Feb 24, 2021):

@stuntguy3000 I don't understand your comment above. #5819 is this issue.

Whoops, corrected - meant to reference 5597 as in the original post.

@stuntguy3000 commented on GitHub (Feb 24, 2021): > @stuntguy3000 I don't understand your comment above. #5819 is this issue. Whoops, corrected - meant to reference 5597 as in the original post.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#4568