Skip to content

dcnm_vrf: When a network is attached to a vrf, deletion fails without proper error handling #455

@neiljohn-gh

Description

@neiljohn-gh

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Ansible Version and collection version

DCNM version

Affected module(s)

dcnm_vrf

  • dcnm_XXXXX

Ansible Playbook

- name: MAIN - OVERRIDDEN - Create vrfs required for this test and remove all other vrfs
  cisco.dcnm.dcnm_vrf:
    fabric: "fabric"
    state: deleted
  tags: always 

Debug Output

fatal: [nac-ndfc1]: FAILED! => {
    "changed": false,
    "module_stderr": "'NoneType' object is not subscriptable",
    "module_stdout": "",
    "msg": "MODULE FAILURE: No start of json char found\nSee stdout/stderr for the exact error"
} 

Expected Behavior

Error should inform that networks are attached

Actual Behavior

Fails without any information

Steps to Reproduce

  1. create a vrf
  2. attach a network
  3. run deleted or override in the playbook

References

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingpr_submittedPR Submitted

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions