Skip to content

Filtering providers by AS number does not work #15609

Closed
@jeremystretch

Description

@jeremystretch

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.

Metadata

Metadata

Assignees

Labels

severity: lowDoes not significantly disrupt application functionality, or a workaround is availablestatus: acceptedThis issue has been accepted for implementationtype: bugA confirmed report of unexpected behavior in the application

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions