05-28-2025 03:50 AM
Neighbors Detail:
Device Name: xxxx
Interface name: xxxx
So I would expect that we can use all this information to help build our Day-0 template.
For example, I wanted to use the platformId
to determine the number of stack members and define how many ports are available;
{% for Platform in __device.platformId.split(',') %} {% if '24' in Platform %} {% set LastPort = 24 %} {% elif '48' in Platform %} {% set LastPort = 48 %} {% endif %} interface range GigabitEthernet{{ loop.index }}/0/1-{{ LastPort }} description It Works {%endfor%}
I'm not sure if this is the best way to achieve what I need, but it seemed like a logical approach to me.
However, I’m getting the following error:
Solved! Go to Solution.
05-28-2025 05:38 AM
Hello @KristofB,
This is a known limitation in onboarding templates as described in the user guide: https://www.cisco.com/c/en/us/td/docs/cloud-systems-management/network-automation-and-management/catalyst-center/2-3-7/user_guide/b_cisco_catalyst_center_user_guide_237/b_cisco_dna_center_ug_2_3_7_chapter_01000.html#onboarding-templates-or-day-zero-t...
You will either have to supply the required information as a variable or handle it with an EEM applet during provisioning
05-28-2025 04:24 AM
Sorry I pasted the error image on top of sentence;
"Using the exact same script in a day-N template works just fine."
05-28-2025 05:38 AM
Hello @KristofB,
This is a known limitation in onboarding templates as described in the user guide: https://www.cisco.com/c/en/us/td/docs/cloud-systems-management/network-automation-and-management/catalyst-center/2-3-7/user_guide/b_cisco_catalyst_center_user_guide_237/b_cisco_dna_center_ug_2_3_7_chapter_01000.html#onboarding-templates-or-day-zero-t...
You will either have to supply the required information as a variable or handle it with an EEM applet during provisioning
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide