neutron/neutron/conf
Hongbin Lu 2b1d8ea4a2 Implement filter validation
Enforce validation on filter parameters on list requests.
If an API request contains an unknown or unsupported parameter,
the server will return a 400 response instead of silently ignoring
the invalid input.

In resource attributes map, all filter parameters are annotated by
the ``is_filter`` keyword. Attributes with is_filter set to True
are candidates for validation.

Enabling filter validation requires support from core plugin and
all service plugins so each plugin need to indicate if it supports
the validation by setting ``__filter_validation_support`` to True.
If this field is not set, the default is False and validation is
turned off. Right now, the ML2 plugin and all the in-tree service
plugin support filter validation. Out-of-tree plugins will have
filter validation disabled by default.

An API extension is introduced to allow API users to discover this
new API behavior. This feature can be disabled by cloud operators
if they choose to do that. If it is disabled, the extension won't
be presented.

Depends-On: Ic3ab5b3ffdc378d570678b9c967cb42b0c7a8a9b
Depends-On: I4397df1c35463a8b532afdc9c5d28b37224a37b4
Depends-On: I3f2e6e861adaeef81a1a5819a57b28f5c6281d80
Depends-On: I1189bc9a50308df5c7e18c329f3a1262c90b9e12
Depends-On: I057cd917628c77dd20c0ff7747936c3fec7b4844
Depends-On: I0b24a304cc3466a2c05426cdbb6f9d99f1797edd

Change-Id: I21bf8a752813802822fd9966dda6ab3b6c4abfdc
Partial-Bug: #1749820
2018-07-19 04:13:43 +00:00
..
agent Adopt hacking 1.1.0 2018-07-05 11:31:40 +09:00
db Refactoring db config options 2017-10-04 15:42:50 -04:00
extensions Fix all pep8 E265 errors 2018-04-30 16:35:52 -04:00
plugins Update tunnel_types config option help msg 2018-06-07 21:28:01 +00:00
services [log]: implement logging agent extension 2017-10-11 16:04:14 +07:00
__init__.py Refactoring config options for quota 2016-05-11 09:15:38 -05:00
common.py Implement filter validation 2018-07-19 04:13:43 +00:00
quota.py Bump default quotas for ports, subnets, and networks 2017-03-21 18:35:28 +00:00
service.py Refactoring config options for service 2016-05-14 21:44:18 -05:00
wsgi.py Refactoring config options for wsgi opts 2016-08-03 19:49:58 +00:00