neutron/neutron/api
pandatt b99298dfad Fix bug: AttributeError arises while sorting with standard attributes
Common neutron resource(e.g, Port) consists of:
1. Resource Attributes, e.g: Port.mac_address, etc.
2. Standard Attributes, e.g: created_at, and are shared among all
   neutron resources.
The `sort` opt only supports limited attributes. We need to filter
attributes that are defined with `is_sort_key=True` and it's preferred
to explicitly warn CLI & API users of illegal sort keys rather than
just accept without check, pass forward and then hit a internal error
which's quite confusing.

Depends-on: https://review.opendev.org/#/c/660097/
Change-Id: I8d206f909b09f1279dfcdc25c39989a67bff93d5
Closes-Bug: #1659175
(cherry picked from commit 335ac4e2d9)
2020-02-03 11:02:28 +00:00
..
rpc Optimize the code that fixes the race condition of DHCP agent. 2019-06-10 09:43:44 +00:00
v2 Fix pep8 E128 warnings in non-test code 2019-03-12 21:22:33 +00:00
views Add a new configuration variable for api links. 2017-04-18 15:16:41 +00:00
__init__.py Added API extensions to detect sorting/pagination features 2016-08-01 22:57:15 +02:00
api_common.py Fix bug: AttributeError arises while sorting with standard attributes 2020-02-03 11:02:28 +00:00
extensions.py remove neutron.common.exceptions 2019-02-01 14:35:00 -07:00