Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot load IPAM-ASNs page #14343

Closed
uid2021 opened this issue Nov 23, 2023 · 3 comments · Fixed by #14369
Closed

Cannot load IPAM-ASNs page #14343

uid2021 opened this issue Nov 23, 2023 · 3 comments · Fixed by #14369
Assignees
Labels
severity: medium Results in substantial degraded or broken functionality for specfic workflows status: accepted This issue has been accepted for implementation type: bug A confirmed report of unexpected behavior in the application

Comments

@uid2021
Copy link

uid2021 commented Nov 23, 2023

NetBox version

v3.6.5

Python version

3.9

Steps to Reproduce

  1. Configure ASN table to include ASDOT column
  2. On the left pane of homepage click 'IPAM'
  3. Click 'ASNs'

Expected Behavior

A page listing configured ASNs

Observed Behavior

Server Error

There was a problem with your request. Please contact an administrator.

The complete exception is provided below:

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

Cannot resolve keyword 'asn_asdot' into field. Choices are: asn, bookmarks, comments, created, custom_field_data, description, id, journal_entries, last_updated, provider_count, providers, rir, rir_id, site_count, sites, tagged_items, tags, tenant, tenant_id

Python version: 3.9.16
NetBox version: 3.6.5
Plugins: None installed

If further assistance is required, please post to the NetBox discussion forum on GitHub.

@uid2021 uid2021 added the type: bug A confirmed report of unexpected behavior in the application label Nov 23, 2023
@uid2021
Copy link
Author

uid2021 commented Nov 24, 2023

The problem only happens when I configure ASN table to include ASDOT column.

@abhi1693 abhi1693 added status: needs owner This issue is tentatively accepted pending a volunteer committed to its implementation severity: medium Results in substantial degraded or broken functionality for specfic workflows labels Nov 24, 2023
@Chiniquy
Copy link

Works fine for me on 3.6.5

@jeremystretch jeremystretch self-assigned this Nov 28, 2023
@jeremystretch jeremystretch added status: accepted This issue has been accepted for implementation and removed status: needs owner This issue is tentatively accepted pending a volunteer committed to its implementation labels Nov 28, 2023
@jeremystretch
Copy link
Member

There's a step missing from the reproduction instructions (thanks @abhi1693):

  1. Click the "ASDOT" column header to order by that column, then reload the page.

The issue is that asn_asdot is actually an instance property rather than a table column, so we need to set the order_by accessor for the column to the raw asn value. This will fix the exception that occurs when attempting to sort the table by this column.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
severity: medium Results in substantial degraded or broken functionality for specfic workflows status: accepted This issue has been accepted for implementation type: bug A confirmed report of unexpected behavior in the application
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants