Filtering providers by AS number does not work #9428

Closed
opened 2025-12-29 20:49:46 +01:00 by adam · 0 comments
Owner

Originally created by @jeremystretch on GitHub (Apr 3, 2024).

Originally assigned to: @jeremystretch on GitHub.

Deployment Type

NetBox Cloud

NetBox Version

v3.7.4

Python Version

3.11

Steps to Reproduce

  1. Create an ASN with number 65001.
  2. Create a provider and assign it the ASN.
  3. Navigate to the providers list in the UI and select the "Filters" tab.
  4. Enter 65001 in the "ASN" field and submit.

Expected Behavior

Only the provider(s) to which the ASN has been assigned should be included in the filtered list.

Observed Behavior

The filter has no effect: all providers are included in the list. This is because ProviderFilterSet no longer has a filter for the legacy asn field, which was removed from the Provider model in NetBox v3.4.

The ASN field should be updated to use the asn_id filter, and should present the user with a dynamic selection field to choose from the existing ASN objects.

Originally created by @jeremystretch on GitHub (Apr 3, 2024). Originally assigned to: @jeremystretch on GitHub. ### Deployment Type NetBox Cloud ### NetBox Version v3.7.4 ### Python Version 3.11 ### Steps to Reproduce 1. Create an ASN with number 65001. 2. Create a provider and assign it the ASN. 3. Navigate to the providers list in the UI and select the "Filters" tab. 4. Enter 65001 in the "ASN" field and submit. ### Expected Behavior Only the provider(s) to which the ASN has been assigned should be included in the filtered list. ### Observed Behavior The filter has no effect: all providers are included in the list. This is because ProviderFilterSet no longer has a filter for the legacy `asn` field, which was removed from the Provider model in NetBox v3.4. The ASN field should be updated to use the `asn_id` filter, and should present the user with a dynamic selection field to choose from the existing ASN objects.
adam added the type: bugstatus: acceptedseverity: low labels 2025-12-29 20:49:47 +01:00
adam closed this issue 2025-12-29 20:49:47 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#9428