Closed
Description
Deployment Type
NetBox Cloud
NetBox Version
v3.7.4
Python Version
3.11
Steps to Reproduce
- Create an ASN with number 65001.
- Create a provider and assign it the ASN.
- Navigate to the providers list in the UI and select the "Filters" tab.
- 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.