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

dcnm_interface expecting case sensitive speed value "Auto" for Routed Interfaces

Open rrahimm opened this issue 1 year 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

ansible 2.13.9 1e80e4319f

collections:

name: ansible.utils version: 2.11.0 name: ansible.netcommon version: 5.3.0 name: cisco.nxos version: 5.3.0 name: https://github.com/CiscoDevNet/ansible-dcnm.git version: main

DCNM version

V 12.1.3b

Affected module(s)

dcnm_interface

Ansible Playbook

- name: Manage Interface Routed
  cisco.dcnm.dcnm_interface:
    fabric: "{{ MD.fabric.name }}"
    state: replaced
    config:
      - name : Ethernet1/11
  		type: eth
  		switch: 
  		  - 192.168.123.59
  		deploy: false
  		profile:
  		  admin_state: True
  		  mode: 'routed'
  		  ipv4_addr: 192.168.57.1
  		  ipv4_mask_len: 24
  		  ipv6_addr: 2021:10:1:1::1
  		  ipv6_mask_len: 64
  		  description: topology_switch_routed_interface
  		  route_tag: 12345
  		  int_vrf: NetAsCodeVrf1
  		  mtu: 1500
  		  speed: auto

Debug Output

    "DATA": [
        {
            "column": 0,
            "entity": "netascode-rtp-spine1:Ethernet1/8",
            "line": 0,
            "message": "Validation failed for following fields: [SPEED]",
            "reportItemType": "ERROR"
        }
    ],
    "MESSAGE": "Internal Server Error",
    "METHOD": "PUT",
    "REQUEST_PATH": "https://rtp-ndfc1.cisco.com:443/appcenter/cisco/ndfc/api/v1/lan-fabric/rest/interface",
    "RETURN_CODE": 500
}

Expected Behavior

speed value in the playbook is case-insensitive for other profile types. However expects "Auto" case-sensitive for type >> mode: 'routed'

Actual Behavior

Failed

Steps to Reproduce

try the above playbook with speed value "auto" and "Auto"

References

rrahimm avatar Mar 22 '24 16:03 rrahimm