Ansible Version
Ansible Collection Versions
Collection Version
------------------ -------
ansible.netcommon 7.1.0
ansible.posix 2.0.0
ansible.utils 5.1.2
cisco.dcnm 3.11.1
cisco.nac_dc_vxlan 0.7.2
cisco.nxos 9.4.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.policy
Expected Behavior
Switches can be added or removed.
Actual Behavior
TASK [cisco.nac_dc_vxlan.create : Manage Policies Entry Point] **************************************************************************************
ok: [vnd1_db_site1] => {
"msg": [
"----------------------------------------------------------------",
"+ Manage Policies Fabric DB-VXLAN-BGP1",
"----------------------------------------------------------------"
]
}
TASK [cisco.nac_dc_vxlan.create : Manage Fabric Policies in Nexus Dashboard] ************************************************************************
fatal: [vnd1_db_site1]: FAILED! => {"changed": false, "msg": {"DATA": {"failureList": [{"message": "An unexpected error occurred during template execution. Please retry after some time. Please contact Cisco TAC if the issue persists.", "name": "POLICY-437240", "status": "Failed"}]}, "MESSAGE": "Internal Server Error", "METHOD": "PUT", "REQUEST_PATH": "https://[2001:420:448b:8006::7]:443/appcenter/cisco/ndfc/api/v1/lan-fabric/rest/control/policies/POLICY-437240/bulk", "RETURN_CODE": 500}}
Ansible Playbook
---
# This is the main entry point playbook.
- hosts: "{{ lookup('env', 'ANSIBLE_HOST') }}"
any_errors_fatal: true
gather_facts: no
roles:
- role: cisco.nac_dc_vxlan.dtc.create
- role: cisco.nac_dc_vxlan.dtc.deploy
- role: cisco.nac_dc_vxlan.dtc.remove
Data Model
---
vxlan:
policy:
policies:
- name: ebgp_overlay_spine_all_neighbor_custom
template_name: ebgp_overlay_spine_all_neighbor_custom
template_vars:
LEAF_IP_LIST: "10.22.0.2,10.22.0.6,10.22.0.4,10.22.0.1"
INTF_NAME: "Loopback0"
LEAF_ASNS: "65000.2,65000.2,65000.22,65000.22"
- name: ebgp_overlay_leaf_all_neighbor_custom
template_name: ebgp_overlay_leaf_all_neighbor_custom
template_vars:
SPINE_IP_LIST: "10.22.0.5,10.22.0.3"
INTF_NAME: "Loopback0"
groups:
- name: leaf_group1
priority: 500
policies:
- name: ebgp_overlay_leaf_all_neighbor_custom
- name: spine_group1
priority: 500
policies:
- name: ebgp_overlay_spine_all_neighbor_custom
- name: BGW_group
priority: 500
policies:
- name: ebgp_overlay_leaf_all_neighbor_custom
switches:
- name: N9Kv-LEAF1
groups:
- leaf_group1
- name: N9Kv-LEAF2
groups:
- leaf_group1
- name: N9Kv-SPINE1
groups:
- spine_group1
- name: N9Kv-SPINE2
groups:
- spine_group1
- name: N9Kv-BGW1
groups:
- BGW_group
- name: N9Kv-BGW2
groups:
- BGW_group
Steps to Reproduce
- Create custom templates by duplicating built-in eBGP overlay templates (Ref: https://netascode.cisco.com/docs/data_models/vxlan/global/vxlan_evpn_ebgp/)
- Run playbook to create policies
- Add or remove switch
- Run playbook again
Relevant Debug Output
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.policy
Expected Behavior
Switches can be added or removed.
Actual Behavior
Ansible Playbook
Data Model
Steps to Reproduce
Relevant Debug Output