![Thomas Morin](/assets/img/avatar_default.png)
Currently, the neutron-lib API code fills defaults values for the attributes defined in a resource map, but does not fill defaults inside the attributes that are dictionaries. This change introduces a 'dict_populate_defaults' flag that allows the defaults to be filled inside dictionary attributes (attributes of any dictionary type). This is useful to incorporate networking-sfc APIs and avoid using the specific normalize_* converter methods [1] (see follow-up changes). [1] https://github.com/openstack/networking-sfc/blob/master/networking_sfc/extensions/sfc.py#L226-L239 Change-Id: I0d7ff1981aa92d17811233e29a6ca7264a9ddb6c
8 lines
291 B
YAML
8 lines
291 B
YAML
---
|
|
features:
|
|
- |
|
|
A new ``dict_populate_defaults`` flag can be used in API definition for
|
|
a dictionary attribute, which will results in default values for the keys
|
|
to be filled in. This can also be used on values of a dictionary attribute
|
|
if they are dictionaries as well.
|