Filtering prefixes by tenant #310

Closed
opened 2025-12-29 16:20:46 +01:00 by adam · 1 comment
Owner

Originally created by @leec-666 on GitHub (Aug 2, 2016).

v1.4.0

When filtering prefixes by tenant, you get no results because it sends a numeric tenant ID rather than the slug.

VLAN/site/rack etc tenant filtering all function correctly as does browsing to Org>Tenants>[tenant]>
Prefixes.

Workaround is to replace tenant=<#> with tenant= in the URL:
http://netbox/ipam/prefixes/?parent=&tenant=2 >> http://netbox/ipam/prefixes/?parent=&tenant=xyz

Originally created by @leec-666 on GitHub (Aug 2, 2016). v1.4.0 When filtering prefixes by tenant, you get no results because it sends a numeric tenant ID rather than the slug. VLAN/site/rack etc tenant filtering all function correctly as does browsing to Org>Tenants>[tenant]> Prefixes. Workaround is to replace tenant=<#> with tenant=<slug> in the URL: http://netbox/ipam/prefixes/?parent=&tenant=2 >> http://netbox/ipam/prefixes/?parent=&tenant=xyz
adam added the type: bug label 2025-12-29 16:20:46 +01:00
adam closed this issue 2025-12-29 16:20:47 +01:00
Author
Owner

@jeremystretch commented on GitHub (Aug 2, 2016):

This was due to using the primary key of the Tenant model instead of the slug. (FYI tenant_id=2 would also suffice as a workaround.) Fixing.

@jeremystretch commented on GitHub (Aug 2, 2016): This was due to using the primary key of the Tenant model instead of the slug. (FYI `tenant_id=2` would also suffice as a workaround.) Fixing.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#310