-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Description
NetBox version
v3.5.8
Python version
3.9
Steps to Reproduce
Reproduced in Demo Netbox v3.5.7 (Note, as of the edit, I moved our test instance to v3.5.8 and reproduced).
-
Navigate to Customization > Export Templates
-
Create some Export Templates if you have none present.
CSV example below for creating one circuit, contact, site and tenant. You can import these.
name,content_types,mime_type,file_extension,as_attachment,template_code
extemplate_circuit,circuits.circuit,text/csv,csv,true,{}
extemplate_contact,tenancy.contact,text/csv,csv,true,{}
extemplate_site,dcim.site,text/csv,csv,true,{}
extemplate_tenant,tenancy.tenant,text/csv,csv,true,{}
-
Once you have some Export Templates, navigate to the search, so Customization > Export Templates > Filters tab
-
Filter against any content type you know is present, or the four demonstrated above, under Filters tab > Attributes section > Content types field
Example filter for Circuit, Contact, Site, Tenant:
--> https://{netboxhost}/extras/export-templates/?content_types=19&content_types=56&content_types=110&content_types=107
Example filter for Tenant:
--> https://{netboxhost}/extras/export-templates/?content_types=107
- Observe search results... or lack thereof.
Expected Behavior
Filtering Content types in the Filters search should return results relevant to the specified Content type that you are filtering for.
Observed Behavior
No results returned for any filtered Content type; at least of those demonstrated.
For many of the other criteria in Filter search - eg MIME type, File extension, Search string and 'Nothing' - these all look to produce results as you would expect; so it looks to just be Content types that is problematic.