Which section of the data model is this issue related to?
vxlan.global
Expected Behavior
If the user provides data under vxlan.global but fails to specify the name or does not provide any data for vxlan.global the playbook should fail indicating the name is mandatory.
Actual Behavior
If the user does provide data under `vxlan.global` but does not specify the `name` parameter the schema will detect it and fail since it's mandatory in the schema.
If no data is provided under `vxlan.global` the schema check is ignored and the first plugin that tries to access `vxlan.global` fails with the error below.
TASK [cisco.nac_dc_vxlan.validate : Read Run Map From Previous Run] ***********************************************************************************************
Wednesday 30 October 2024 16:48:14 -0400 (0:00:00.013) 0:00:02.179 *****
Wednesday 30 October 2024 16:48:14 -0400 (0:00:00.013) 0:00:02.179 *****
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: KeyError: 'global'
fatal: [nac-ndfc1 -> localhost]: FAILED! => {"msg": "Unexpected failure during module execution: 'global'", "stdout": ""}
Ansible Playbook
Run validate role without vxlan.global data
Steps to Reproduce
Run validate role without vxlan.global data
Relevant Debug Output
TASK [cisco.nac_dc_vxlan.validate : Read Run Map From Previous Run] ***********************************************************************************************
Wednesday 30 October 2024 16:48:14 -0400 (0:00:00.013) 0:00:02.179 *****
Wednesday 30 October 2024 16:48:14 -0400 (0:00:00.013) 0:00:02.179 *****
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: KeyError: 'global'
fatal: [nac-ndfc1 -> localhost]: FAILED! => {"msg": "Unexpected failure during module execution: 'global'", "stdout": ""}
Ansible Version
Ansible Collection Versions
Cisco NDFC Version
Cisco NX-OS Version
Which role is this issue related to?
cisco.nac_dc_vxlan.validate
Which section of the data model is this issue related to?
vxlan.global
Expected Behavior
Actual Behavior
Ansible Playbook
Steps to Reproduce
Relevant Debug Output