netbox-community / netbox

The premier source of truth powering network automation. Open source under Apache 2. Try NetBox Cloud free: https://netboxlabs.com/free-netbox-cloud/
http://netboxlabs.com/oss/netbox/
Apache License 2.0
16.14k stars 2.58k forks source link

unexpected results when using quick filter of aggregates=>prefixes #17701

Open chatasos opened 4 weeks ago

chatasos commented 4 weeks ago

Deployment Type

Self-hosted

NetBox Version

v4.1.3

Python Version

3.10

Steps to Reproduce

1) Create an aggregate of 172.16.0.0/12 and import the attached csv files into prefixes. 2) Go to the aggregates and select the 172.16.0.0/12 3) Go to prefixes tab and enter "/16" (without quotes) in the quick filter

PS: I replicated this behavior in the demo instance too. netbox_prefixes.csv netbox_prefixes2.csv

Expected Behavior

To have the /16 prefixes being returned.

Observed Behavior

A lot of prefixes are returned, without any obvious relationship to the original query.

Also, many of them show as available, while this is not true.

image

chatasos commented 4 weeks ago

This happens only with specific search queries. for example: /15, /17, /18, /19 return nothing. /16, /20 return something.