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/656063 /git.openstack. org/cgit/ openstack/ neutron/ commit/ ?id=fe09b40d57d 239aa4a54b6660f c28c940a3306c5
Committed: https:/
Submitter: Zuul
Branch: stable/stein
commit fe09b40d57d239a a4a54b6660fc28c 940a3306c5
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