Ansible Version
Ansible Collection Versions
Collection Version
------------------ ----------
ansible.netcommon 7.1.0
ansible.posix 2.0.0
ansible.utils 5.1.2
cisco.cml 1.2.1
cisco.dcnm 3.11.0-dev
cisco.nac_dc_vxlan 0.7.1-dev
cisco.nxos 10.2.0
community.general 10.1.0
Cisco Nexus Dashboard Version
Cisco NX-OS Version
Which role is this issue related to?
cisco.nac_dc_vxlan.dtc.create
Which section of the data model is this issue related to?
vxlan.fabric
Expected Behavior
Leaf and Spine iBGP freeforms are created on the corresponding switches
Actual Behavior
Playbook aborted due to error
Ansible Playbook
ansible-playbook vxlan.yaml --inventory inventory.yaml --limit nac-fabric2-ma --tags=role_create -e '{force_run_all: true}'
Data Model
---
vxlan:
fabric:
name: juarocha-nac-fabric2-ma
type: VXLAN_EVPN
global:
ibgp:
spine_ibgp_peer_template_freeform: |
template peer LEAVES
remote-as 65002
description to-leaf-freeform
update-source loopback0
address-family l2vpn evpn
send-community
send-community extended
route-reflector-client
leaf_ibgp_peer_template_freeform: |
template peer SPINES
remote-as 65002
description to-spine-freeform
update-source loopback0
address-family l2vpn evpn
send-community
send-community extended
Steps to Reproduce
Relevant Debug Output
fatal: [nac-fabric2-ma]: FAILED! => {"changed": false, "metadata": [{"action": "fabric_create", "check_mode": false, "sequence_number": 1, "state": "merged"}], "msg": "Module failed.", "response": [{"DATA": "Invalid JSON response: Failed to create the fabric with error: \niBGP peer template: bgp peer template command must have 2 leading spaces. Please fix spacing problem: template peer LEAVES. iBGP peer template: bgp peer template sub-command must have 4 or 6 leading spaces. Please fix spacing problem in the following commands: [ remote-as 65002] [ description to-leaf-freeform] [ update-source loopback0] [ address-family l2vpn evpn] . iBGP peer template: remote-as command must start with 4 leading spaces. Please fix spacing problem: remote-as 65002. iBGP peer template: address-family command must start with 4 leading spaces. Please fix spacing problem: address-family l2vpn evpn. ", "MESSAGE": "Internal Server Error", "METHOD": "POST", "REQUEST_PATH": "https://sac-nd03.cisco.com:443/appcenter/cisco/ndfc/api/v1/lan-fabric/rest/control/fabrics/juarocha-nac-fabric2-ma/Easy_Fabric", "RETURN_CODE": 500, "sequence_number": 1}], "result": [{"changed": false, "sequence_number": 1, "success": false}]}
Ansible Version
Ansible Collection Versions
Cisco Nexus Dashboard Version
Cisco NX-OS Version
Which role is this issue related to?
cisco.nac_dc_vxlan.dtc.create
Which section of the data model is this issue related to?
vxlan.fabric
Expected Behavior
Actual Behavior
Ansible Playbook
Data Model
Steps to Reproduce
Relevant Debug Output
fatal: [nac-fabric2-ma]: FAILED! => {"changed": false, "metadata": [{"action": "fabric_create", "check_mode": false, "sequence_number": 1, "state": "merged"}], "msg": "Module failed.", "response": [{"DATA": "Invalid JSON response: Failed to create the fabric with error: \niBGP peer template: bgp peer template command must have 2 leading spaces. Please fix spacing problem: template peer LEAVES. iBGP peer template: bgp peer template sub-command must have 4 or 6 leading spaces. Please fix spacing problem in the following commands: [ remote-as 65002] [ description to-leaf-freeform] [ update-source loopback0] [ address-family l2vpn evpn] . iBGP peer template: remote-as command must start with 4 leading spaces. Please fix spacing problem: remote-as 65002. iBGP peer template: address-family command must start with 4 leading spaces. Please fix spacing problem: address-family l2vpn evpn. ", "MESSAGE": "Internal Server Error", "METHOD": "POST", "REQUEST_PATH": "https://sac-nd03.cisco.com:443/appcenter/cisco/ndfc/api/v1/lan-fabric/rest/control/fabrics/juarocha-nac-fabric2-ma/Easy_Fabric", "RETURN_CODE": 500, "sequence_number": 1}], "result": [{"changed": false, "sequence_number": 1, "success": false}]}