netbox-community / netbox

The premier source of truth powering network automation. Open source under Apache 2. Public demo: https://demo.netbox.dev
http://netboxlabs.com/oss/netbox/
Apache License 2.0
15.5k stars 2.52k forks source link

Cable type empty filtering not working #16837

Open opensourceXnetbox opened 3 weeks ago

opensourceXnetbox commented 3 weeks ago

Deployment Type

Self-hosted

NetBox Version

v.4.0.6

Python Version

3.11

Steps to Reproduce

  1. Go to https://netbox.example.com/dcim/cables/
  2. Filter typeempty=True (https://netbox.example.com/dcim/cables/?typeempty=True)
  3. Filter is not working

Expected Behavior

Only shows Cables without type

Observed Behavior

Filter shows all cables, seems like nothing was filtered

opensourceXnetbox commented 3 weeks ago

As this filtering is quite important to me, I tried again and found that the following works for me: https://netbox.example.com/dcim/cables/?type__n=cat3&type__n=cat5&type__n=cat5e&type__n=cat6&type__n=cat6a&type__n=cat7&type__n=cat7a&type__n=cat8&type__n=dac-active&type__n=dac-passive&type__n=mrj21-trunk&type__n=coaxial&type__n=mmf&type__n=mmf-om1&type__n=mmf-om2&type__n=mmf-om3&type__n=mmf-om4&type__n=mmf-om5&type__n=smf&type__n=smf-os1&type__n=smf-os2&type__n=aoc&type__n=power. Should the other spelling be possible in the future, it would still be quite helpful, but for now its fine for me!