openstack4j icon indicating copy to clipboard operation
openstack4j copied to clipboard

osClientV3.networking().port().list(portListOptions) can not use some optional parameters

Open bboyHan opened this issue 4 years ago • 0 comments

when i want to use the api call to get the port list and filter results by using query string parameters, but find it unavailable because it's not perfect about org.openstack4j.model.network.options.PortListOptions

api-ref: https://docs.openstack.org/api-ref/network/v2/?expanded=list-ports-detail#ports

eg: the Neutron API supports IP address substring filtering on the fixed_ips attribute.

We can add some methods to improve the use of API about PortListOptions. like

//status[optional] values are ACTIVE, DOWN, BUILD and ERROR. public PortListOptions status(String status) { return add("status", status); }

bboyHan avatar Jun 03 '20 01:06 bboyHan