Closed richwats closed 1 year ago
Issue will be resolved in new version of NDI where the output created by the ansible collection is sufficient and the identifiers are not required. Decided to not make changes to the ansible collection, because the output generated is valid ACI config.
Community Note
Description
I'm using the output and dry-run/check option with the Cisco ACI collection. I then pass that the output file to the Nexus Dashboard Insights Pre-Change Validation (PCV) module (nd_pcv).
It appears that when the objects are to be deleted using the "state: absent" parameter, that resulting output is missing the a required parameter ("name") and is rejected by Nexus Dashboard.
Affected Module Name(s):
cisco.aci.aci_tenant
cisco.aci.aci_bd
(probably others...)
cisco.nd.nd_pcv
APIC version and APIC Platform
Collection versions
Output/ Error message
When removing/deleting a bridge domain the aci_bd, the output is missing the "name" attribute
The error from Nexus Dashboard Insights is a follows. The error message is 'ND Error 4011 (ERROR): Required attribute \"name\" missing for type \"fvBD\".' I have also seen the same problem when removing tenants using the aci_tenant module.
Expected Behavior
That when the "state: absent" parameter is used the output / check option that the resulting JSON code is valid to be taken into the Nexus Dashboard Insights Pre-Change Validation service. It appears that either the JSON code generated by the ACI collection should add the name parameter or the Nexus Dashboard Insights code should be modified to not expect the "name" parameter when the DN parameter is present.
Actual Behavior
Nexus Dashboard rejects the request to create a new PCV analysis job as above.
Playbook tasks to Reproduce
Playbook are available (internally) here https://wwwin-github.cisco.com/richwats/ansible-awx-aci-ndi-demo