ansible-network / resource_module_models

Models used for building and maintaining resource modules
GNU General Public License v3.0
20 stars 64 forks source link

Route Maps data model and examples for enterprise_sonic #206

Closed kerry-meyer closed 1 year ago

kerry-meyer commented 1 year ago

Note: Please see the order of examples listed at the bottom of the "sonic_route_maps.yml" file for the intended order of applying and reading the examples in this model.

kerry-meyer commented 1 year ago

I have fixed the problems identified in the first pass review comments. The corresponding changes have been made in all files of the change set (the ".yml" data model definition file and all "example" files).

kerry-meyer commented 1 year ago

I have deleted the "dictionary deletion" example cases because this functionality is not supported by the Ansible infrastructure.

There is no way for a resource module to distinguish a dictionary name (key) provided in a playbook with no value specified (the intended indicator for dictionary deletion) from any other dictionaries defined at the same nesting level in the argspec, but not present in the playbook. In both cases, Ansible provides the key for the dictionary, followed by a null value.