Get ports query: extract limit and use it only at the end.
_get_ports_query add filters after a get_collection. If limits are
passed to applied to the query, then no additional filter is allowed.
This patch extracts an eventual limit argument, to apply it only after
the additional filters.
Change-Id: I83394394860d10e27379efe0356d0fa9c567140e
Closes-Bug: #1826186
(cherry picked from commit cf8f3326be14d30456b20e4d1a55a36762daa550)
Reviewed: https:/ /review. opendev. org/656064 /git.openstack. org/cgit/ openstack/ neutron/ commit/ ?id=d9ff4aee203 4d676af06cc7bce b841bae3465bef
Committed: https:/
Submitter: Zuul
Branch: stable/rocky
commit d9ff4aee2034d67 6af06cc7bceb841 bae3465bef
Author: Gabriele Cerami <email address hidden>
Date: Thu Apr 25 11:28:17 2019 +0100
Get ports query: extract limit and use it only at the end.
_get_ ports_query add filters after a get_collection. If limits are
passed to applied to the query, then no additional filter is allowed.
This patch extracts an eventual limit argument, to apply it only after
the additional filters.
Change-Id: I83394394860d10 e27379efe0356d0 fa9c567140e 456b20e4d1a55a3 6762daa550)
Closes-Bug: #1826186
(cherry picked from commit cf8f3326be14d30