Thomas Morin c8e1389a55 API attribute processing: allow to populate dict attribute default values
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
2018-04-17 17:25:31 +02:00
2018-03-07 20:31:12 +01:00
2015-12-19 01:00:22 -05:00
2015-11-19 19:54:39 +00:00
2015-11-20 17:24:43 -07:00
2015-12-19 01:00:22 -05:00
2018-03-22 16:36:02 -04:00
2015-11-20 17:24:43 -07:00
2015-11-20 17:24:43 -07:00
2018-02-12 15:11:11 +08:00
2017-03-02 11:49:11 +00:00

Team and repository tags

image

neutron-lib

Neutron shared routines and utilities

Features

  • TODO
Description
Neutron shared routines and utilities.
Readme 32 MiB
Languages
Python 97.4%
PHP 2.2%
Shell 0.4%