You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ND Version 3.2(1i)
Fabric Controller Version 12.2.2.241
Cisco NX-OS Version
N/A
Which role is this issue related to?
cisco.nac_dc_vxlan.validate
Which section of the data model is this issue related to?
vxlan.topology
Expected Behavior
If user creates vPC peer with nodes that are not defined in vxlan.topology.switches the playbook should fail indicating that the switch nodes referenced by the vPC peer configuration are not defined.
Actual Behavior
Rule 305 does not prevent referencing non existing switch nodes. Role_create will fail.
TASK [cisco.nac_dc_vxlan.common : Build vPC Peering] ****************************************************************************************************************
Wednesday 20 November 2024 09:16:39 +0100 (0:00:00.008) 0:00:10.266 ****
Wednesday 20 November 2024 09:16:39 +0100 (0:00:00.008) 0:00:10.266 ****
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: ansible.errors.AnsibleUndefinedVariable: 'dict object' has no attribute 's1-leaf-103'. 'dict object' has no attribute 's1-leaf-103'
fatal: [nac-ndfc1 -> localhost]: FAILED! => {"changed": false, "msg": "AnsibleUndefinedVariable: 'dict object' has no attribute 's1-leaf-103'. 'dict object' has no attribute 's1-leaf-103'"}
The full traceback is:
Traceback (most recent call last):
File "/Users/robvand/.pyenv/versions/3.10.3/envs/nac-ndfc/lib/python3.10/site-packages/ansible/template/__init__.py", line 1010, in do_template
res = myenv.concat(rf)
File "/Users/robvand/.pyenv/versions/3.10.3/envs/nac-ndfc/lib/python3.10/site-packages/ansible/template/native_helpers.py", line 83, in ansible_concat
return''.join([to_text(v) forvin nodes])
File "/Users/robvand/.pyenv/versions/3.10.3/envs/nac-ndfc/lib/python3.10/site-packages/ansible/template/native_helpers.py", line 83, in<listcomp>return''.join([to_text(v) forvin nodes])
File "<template>", line 34, in root
File "/Users/robvand/.pyenv/versions/3.10.3/envs/nac-ndfc/lib/python3.10/site-packages/ansible/template/__init__.py", line 295, in wrapper
ret = func(*args, **kwargs)
File "/Users/robvand/.pyenv/versions/3.10.3/envs/nac-ndfc/lib/python3.10/site-packages/ansible/template/__init__.py", line 558, in _ansible_finalize
return thing if _fail_on_undefined(thing) is not None else''
File "/Users/robvand/.pyenv/versions/3.10.3/envs/nac-ndfc/lib/python3.10/site-packages/ansible/template/__init__.py", line 530, in _fail_on_undefined
elif is_sequence(data):
File "/Users/robvand/.pyenv/versions/3.10.3/envs/nac-ndfc/lib/python3.10/site-packages/ansible/module_utils/common/collections.py", line 94, in is_sequence
if not include_strings and is_string(seq):
File "/Users/robvand/.pyenv/versions/3.10.3/envs/nac-ndfc/lib/python3.10/site-packages/jinja2/runtime.py", line 857, in _fail_with_undefined_error
raise self._undefined_exception(self._undefined_message)
jinja2.exceptions.UndefinedError: 'dict object' has no attribute 's1-leaf-103'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/robvand/.pyenv/versions/3.10.3/envs/nac-ndfc/lib/python3.10/site-packages/ansible/plugins/action/template.py", line 152, in run
resultant = templar.do_template(template_data, preserve_trailing_newlines=True, escape_backslashes=False, overrides=overrides)
File "/Users/robvand/.pyenv/versions/3.10.3/envs/nac-ndfc/lib/python3.10/site-packages/ansible/template/__init__.py", line 1044, in do_template
raise AnsibleUndefinedVariable(e, orig_exc=e)
ansible.errors.AnsibleUndefinedVariable: 'dict object' has no attribute 's1-leaf-103'. 'dict object' has no attribute 's1-leaf-103'
fatal: [nac-ndfc1 -> localhost]: FAILED! => {
"changed": false,
"msg": "AnsibleUndefinedVariable: 'dict object' has no attribute 's1-leaf-103'. 'dict object' has no attribute 's1-leaf-103'"
}
The text was updated successfully, but these errors were encountered:
Ansible Version
Ansible Collection Versions
Cisco NDFC Version
Cisco NX-OS Version
Which role is this issue related to?
cisco.nac_dc_vxlan.validate
Which section of the data model is this issue related to?
vxlan.topology
Expected Behavior
If user creates vPC peer with nodes that are not defined in vxlan.topology.switches the playbook should fail indicating that the switch nodes referenced by the vPC peer configuration are not defined.
Actual Behavior
Ansible Playbook
Steps to Reproduce
Relevant Debug Output
The text was updated successfully, but these errors were encountered: