openstack4j
openstack4j copied to clipboard
osClientV3.networking().port().list(portListOptions) can not use some optional parameters
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); }