CiscoDevNet / ansible-dcnm

Apache License 2.0
47 stars 37 forks source link

can't create a vrf in NDFC #239

Open sissi48 opened 1 year ago

sissi48 commented 1 year ago

Hello, I can't create a vrf on ndfc:

- name: Create VRF 
  cisco.dcnm.dcnm_vrf:
    fabric: "{{ Fabric }}"
    config:
    - vrf_name: "{{ vrf_name }}"
      vrf_id: "{{ vrf_id | int }}"
      vlan_id: "{{ vlan_id | int }}"

I have this error: "changed": false, "module_stderr": "list indices must be integers or slices, not str", "module_stdout": "", "msg": "MODULE FAILURE\nSee stdout/stderr for the exact error"

I am using the latest version of the module: cisco.dcnm 3.3.1

Version NDFC: 12.1.2e

Regards,

praveenramoorthy commented 1 year ago

@sissi48 Thanks for raising this SR. Will check and fix this issue.

praveenramoorthy commented 1 year ago

@sissi48 I tried to recreate this issue with the same playbook in my setup without any success. Logs for these run can be found in this gist (https://gist.github.com/praveenramoorthy/944437bacf55bf8c473994143d762481). May be I am missing something. Can you please share the playbook run with logs? You need to run your playbook with "-vvvv" option for this.