network/module_utils/network_lsr
Thomas Haller e01e550c59 arg_validator: support generating default value for ArgValidatorDict
Some dictionaries may wish to have a default value that is a dictionary
with the default of all keys.

Add a method to generate this.

This returns a callable instead of a plain dictionary. In practice, the
generated default value should always be the same. However, we also
expect that ArgValidator validation gives a result that is owned by the
caller. In case of mutable values (like a dictionary), we want a deep
clone.

Signed-off-by: Thomas Haller <thaller@redhat.com>
2021-08-26 16:30:09 +08:00
..
nm fix most ansible-test issues, suppress the rest 2021-04-09 19:57:55 +02:00
__init__.py fix most ansible-test issues, suppress the rest 2021-04-09 19:57:55 +02:00
argument_validator.py arg_validator: support generating default value for ArgValidatorDict 2021-08-26 16:30:09 +08:00
ethtool.py fix most ansible-test issues, suppress the rest 2021-04-09 19:57:55 +02:00
myerror.py fix most ansible-test issues, suppress the rest 2021-04-09 19:57:55 +02:00
nm_provider.py Add support for ETHTOOL Ring option 2021-05-11 18:19:16 +02:00
utils.py fix python black issues 2021-05-03 18:41:05 +02:00