ansible-dcnm icon indicating copy to clipboard operation
ansible-dcnm copied to clipboard

dcnm_network module does not show an error when an unsupported parameter is in the playbook

Open neiljohn-gh opened this issue 6 months ago • 0 comments

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_network

  • dcnm_XXXXX

Ansible Playbook

    - name: Create Network
      cisco.dcnm.dcnm_network:
        fabric: neil-test
        state: merged
        config:
        - net_name: MYNETWORK1
          vrf_name: Ansible-prod
          is_l2only: False
          net_id: 30999
          vlan_id: 999
          gw_ip_subnet: 10.0.99.1/24
          vlan_name: MYNETWORK1
          int_desc: 
          mtu_l3intf: 9216
          dhcp_srvr1_ip: 1.1.1.1
          dhcp_srvr1_vrf: Ansible-prod
          dhcp_srvr2_ip: 2.2.2.2
          dhcp_srvr2_vrf: Ansible-prod
          dhcp_srvr3_ip: 3.3.3.3
          dhcp_srvr3_vrf: Ansible-prod
          dhcp_loopback_id: 2
          fake_parameter: fake_value

Debug Output

Expected Behavior

throw an error stating fake_parameter is invalid

Actual Behavior

Tasks executes while ignoring fake_parameter

Steps to Reproduce

run playbook after creating the vrf

References

related to #446

neiljohn-gh avatar Jul 04 '25 10:07 neiljohn-gh