diff --git a/neutron_lib/api/definitions/servicetype.py b/neutron_lib/api/definitions/servicetype.py index 461af1705..6a6c7d39e 100644 --- a/neutron_lib/api/definitions/servicetype.py +++ b/neutron_lib/api/definitions/servicetype.py @@ -38,16 +38,19 @@ RESOURCE_ATTRIBUTE_MAP: ResourceAttributeMap = { SERVICE_ATTR: { 'allow_post': False, 'allow_put': False, + 'is_filter': True, 'is_visible': True }, 'name': { 'allow_post': False, 'allow_put': False, + 'is_filter': True, 'is_visible': True }, 'default': { 'allow_post': False, 'allow_put': False, + 'is_filter': True, 'is_visible': True } } diff --git a/releasenotes/notes/servicetype-add-is-filter-to-api-definitions-a3b7e5c9d2f14860.yaml b/releasenotes/notes/servicetype-add-is-filter-to-api-definitions-a3b7e5c9d2f14860.yaml new file mode 100644 index 000000000..4142fc382 --- /dev/null +++ b/releasenotes/notes/servicetype-add-is-filter-to-api-definitions-a3b7e5c9d2f14860.yaml @@ -0,0 +1,8 @@ +--- +fixes: + - | + Added ``is_filter`` to all scalar attributes in the service type API + definition (``service_type``, ``name``, and ``default``). Previously, + no service provider attribute was declared as filterable, which caused + list operations with query filters (e.g. ``?name=foo``) to return HTTP + 400 when the filter-validation extension is enabled.