CustomFieldFilter object has no attribute name #2206

Closed
opened 2025-12-29 17:23:37 +01:00 by adam · 0 comments
Owner

Originally created by @milleroff on GitHub (Dec 12, 2018).

  • Python version: 3.6
  • NetBox version: 2.5.0

Steps to Reproduce

  1. Create a custom field for IPAM -> Prefixes called "neutron_subnet_id".
  2. Query the API for all prefixes having that custom field set to a value:

curl -H "Authorization: Token XXXX" -H "Content-Type: application/json" - H "Accept: application/json; indent=4" 'https://netbox.example.com/api/ipam/prefixes/?cf_neutron_subnet_id=9ed55a06-ee0b-454c-8a11-2eabab46fa38'

The request above works perfectly on netbox 2.4.5.

Expected Behavior

Return all prefixes having the custom field set to needed value

Observed Behavior

Getting an error:
There was a problem with your request. Please contact an administrator.
class AttributeError
CustomFieldFilter object has no attribute name

Originally created by @milleroff on GitHub (Dec 12, 2018). * Python version: 3.6 * NetBox version: 2.5.0 ### Steps to Reproduce 1. Create a custom field for **IPAM -> Prefixes** called "neutron_subnet_id". 2. Query the API for all prefixes having that custom field set to a value: ` curl -H "Authorization: Token XXXX" -H "Content-Type: application/json" - H "Accept: application/json; indent=4" 'https://netbox.example.com/api/ipam/prefixes/?cf_neutron_subnet_id=9ed55a06-ee0b-454c-8a11-2eabab46fa38' ` The request above works perfectly on netbox 2.4.5. ### Expected Behavior Return all prefixes having the custom field set to needed value ### Observed Behavior Getting an error: **There was a problem with your request. Please contact an administrator. class AttributeError CustomFieldFilter object has no attribute name**
adam added the type: bugstatus: accepted labels 2025-12-29 17:23:37 +01:00
adam closed this issue 2025-12-29 17:23:37 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#2206