[RFE]Support filter by attribute with null value
Bug #1762752 reported by
Hongbin Lu
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
neutron |
Opinion
|
Medium
|
Deepak Mourya |
Bug Description
Right now, it seems it is impossible to list resources with a filter that contains null value. For example, it is impossible to list subnets that doesn't have subnetpool. I tried the following, but it doesn't seem to work (it returned an empty list instead of the filtered list).
GET "/subnets?
IMHO, we can consider to add support for that.
Changed in neutron: | |
status: | New → Confirmed |
importance: | Undecided → Medium |
tags: | added: api rfe |
tags: |
added: ref removed: rfe |
tags: |
added: rfe removed: ref |
summary: |
- Support filter by attribute with null value + [RFE]Support filter by attribute with null value |
Changed in neutron: | |
assignee: | nobody → Deepak Mourya (mourya007) |
To post a comment you must log in.
hi, I Have tried this on the nova api as well and found similar results like
curl -g -i -X GET http:// 172.30. 64.26/compute/ v2.1/servers/ detail? key_name= null -H "Accept: application/json" -H "User-Agent: python-novaclient" -H "X-Auth-Token: gAAAAABbFRenwil 3aQ485pkwoAKVRc Gh9ijvLe4992_ etOtrx0EXflUM_ 3NAgTigclsGC9ru 7tEleHc- Ch0kYpTBUsEE1NJ ev5Hm9X2QrPRgLk WMbZebs6hFh6TMx K_rIwO0FobNQbRX cs_smCA8tc5KklN gxL7XCIoGYgvtTp 1may6r7Q07dNE" API-Version: compute 2.1 Nova-API- Version: 2.1 API-Version, X-OpenStack- Nova-API- Version request- id: req-3337674d- d860-4788- aaa4-a3b049a8f0 45 request- id: req-3337674d- d860-4788- aaa4-a3b049a8f0 45
HTTP/1.1 200 OK
Date: Mon, 04 Jun 2018 10:43:19 GMT
Server: Apache/2.4.18 (Ubuntu)
Content-Length: 15
Content-Type: application/json
OpenStack-
X-OpenStack-
Vary: OpenStack-
x-openstack-
x-compute-
Connection: close
{"servers": []}
So in my understanding this might be related with the rest api itself not specific to any openstack project. Please let me know your Opinion.