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
Which section of the data model is this issue related to?
vxlan.global
Expected Behavior
The goal is to be able to have bootstrap enabled without DHCP parameters.
Actual Behavior
Even when ``enable_local_dhcp_server`` is set to False, you need to provide dhcp_version , etc.
bootstrap:
enable_bootstrap: true
enable_local_dhcp_server: false
dhcp_version: DHCPv4
ASK [cisco.nac_dc_vxlan.common : Build Fabric Creation Parameters From Template
The full traceback is:
Traceback (most recent call last):
File "/Users/ccoueffe/.pyenv/versions/3.11.10/envs/sac-ndfc/lib/python3.11/site-packages/ansible/template/__init__.py", line 993, in do_template
res = myenv.concat(rf)
^^^^^^^^^^^^^^^^
File "/Users/ccoueffe/.pyenv/versions/3.11.10/envs/sac-ndfc/lib/python3.11/site-packages/ansible/template/native_helpers.py", line 81, in ansible_concat
return''.join([to_text(v) forvin nodes])
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/ccoueffe/.pyenv/versions/3.11.10/envs/sac-ndfc/lib/python3.11/site-packages/ansible/template/native_helpers.py", line 81, in<listcomp>return''.join([to_text(v) forvin nodes])
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<template>", line 22, in root
File "/Users/ccoueffe/Documents/sac-ndfc/nac-ndfc/collections/ansible_collections/cisco/nac_dc_vxlan/roles/dtc/common/templates/ndfc_fabric/dc_vxlan_fabric/dc_vxlan_fabric_base.j2", line 62, in root
File "/Users/ccoueffe/Documents/sac-ndfc/nac-ndfc/collections/ansible_collections/cisco/nac_dc_vxlan/roles/dtc/common/templates/ndfc_fabric/dc_vxlan_fabric/bootstrap/dc_vxlan_fabric_bootstrap.j2", line 29, in root
File "/Users/ccoueffe/.pyenv/versions/3.11.10/envs/sac-ndfc/lib/python3.11/site-packages/ansible/template/__init__.py", line 294, in wrapper
ret = func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "/Users/ccoueffe/.pyenv/versions/3.11.10/envs/sac-ndfc/lib/python3.11/site-packages/ansible/template/__init__.py", line 541, in _ansible_finalize
return thing if _fail_on_undefined(thing) is not None else''
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/ccoueffe/.pyenv/versions/3.11.10/envs/sac-ndfc/lib/python3.11/site-packages/ansible/template/__init__.py", line 513, in _fail_on_undefined
elif is_sequence(data):
^^^^^^^^^^^^^^^^^
File "/Users/ccoueffe/.pyenv/versions/3.11.10/envs/sac-ndfc/lib/python3.11/site-packages/ansible/module_utils/common/collections.py", line 93, in is_sequence
if not include_strings and is_string(seq):
File "/Users/ccoueffe/.pyenv/versions/3.11.10/envs/sac-ndfc/lib/python3.11/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 'dhcp_v4'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/ccoueffe/.pyenv/versions/3.11.10/envs/sac-ndfc/lib/python3.11/site-packages/ansible/plugins/action/template.py", line 151, in run
resultant = templar.do_template(template_data, preserve_trailing_newlines=True, escape_backslashes=False, overrides=overrides)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/ccoueffe/.pyenv/versions/3.11.10/envs/sac-ndfc/lib/python3.11/site-packages/ansible/template/__init__.py", line 1027, in do_template
raise AnsibleUndefinedVariable(e)
ansible.errors.AnsibleUndefinedVariable: 'dict object' has no attribute 'dhcp_v4'
fatal: [nac-ndfc3 -> localhost]: FAILED! => changed=false
msg: 'AnsibleUndefinedVariable: ''dict object'' has no attribute ''dhcp_v4'''
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.dtc.create
Which section of the data model is this issue related to?
vxlan.global
Expected Behavior
Actual Behavior
Ansible Playbook
Steps to Reproduce
Relevant Debug Output
The text was updated successfully, but these errors were encountered: