2018-04-10 15:22:14 |
Hongbin Lu |
description |
Right now, it seems it is impossible to list resources with a filter that contains blank value (null or ""). For example:
* It is impossible to list unbound ports (whose device_id is ""). I tried the following, but it doesn't seem to work (it returned all ports instead of the filtered ports).
GET "/ports?device_id="
* 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?subnetpool_id=null"
IMHO, we need to add support for that. Otherwise, the filtering feature is incomplete. |
Right now, it seems it is impossible to list resources with a filter that contains blank value (""). For example, it is impossible to list unbound ports (whose device_id is ""). I tried the following, but it doesn't seem to work (it returned all ports instead of the filtered ports).
GET "/ports?device_id="
NOTE: There is a reported case that a user wanted to filter and delete the relevant resources. However, the user entered an empty value by mistake and wrongly deleted all the resources. The incident is due to this RFE so fixing it is critical. |
|