Hi.
Platinum-PortAssign-Template.j2 fails while trying to enumerate ports per switch in a stack, DNAC 2.3.3.5 and 9200 switches.
A rewrite fixed it on my end, you might want to consider changing the code if you can reproduce the error.
From:
{% for Switch in range(StackMemberCount) -%}
{% set Model = StackPIDs[Switch] -%}
{% if '48' in Model -%}
{% set PortTotal = PortTotal.append(48) -%}
{% elif '24' in Model %}
{% set PortTotal = PortTotal.append(24) -%}
{% endif -%}
{% endfor -%}
To:
{% for Switch in range(StackMemberCount) -%}
{% set Model = StackPIDs[Switch] -%}
{% if '48' in Model -%}
{% set PortTotal[Switch]= PortTotal.append(48) -%}
{% elif '24' in Model %}
{% set PortTotal[Switch]= PortTotal.append(24) -%}
{% endif -%}
{% endfor -%}
Otherwise, outstanding work on both the guides and the code/templates. Highly appreciated!