Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Filtering prefixes by tenant #409

Closed
chonty opened this issue Aug 2, 2016 · 1 comment
Closed

Filtering prefixes by tenant #409

chonty opened this issue Aug 2, 2016 · 1 comment
Labels
type: bug A confirmed report of unexpected behavior in the application

Comments

@chonty
Copy link

chonty commented 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

@jeremystretch jeremystretch added the type: bug A confirmed report of unexpected behavior in the application label Aug 2, 2016
@jeremystretch
Copy link
Member

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.

if-fi pushed a commit to if-fi/netbox that referenced this issue Oct 1, 2016
@lock lock bot locked as resolved and limited conversation to collaborators Jan 19, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type: bug A confirmed report of unexpected behavior in the application
Projects
None yet
Development

No branches or pull requests

2 participants