cancel
Showing results for 
Search instead for 
Did you mean: 
cancel

Who Me Too'd this topic

Template config

rasmus.elmholt
Level 7
Level 7

I have made some simple templates that should configure dot1x on userdefined ports. But when I try to provision the template, either to the device or just to preview I get an #Conflict error in the CLI output.

Running DNAC 2.3.5.5 on Cat9300 on IOS 17.9.x.

I include my interface configuration from a base-config file.

{% macro interface_dot1x_closed() %}
source template DOT1X_CLOSED
{% endmacro %}

And  include it in the template I am using on the device:

{% set userports = "!" %}
{% if __device.platformId == "C9300LM-24U-4Y" %}
{% set userports = "gi 1/0/1 - 22" %}
{% elif __device.platformId == "C9300LM-48U-4Y" %}
{% set userports = "gi 1/0/1 - 46" %}
{% endif %}
! ### USER PORTS ###
interface range {{ userports }}
{{ interface_dot1x_closed() }}
!

But when I try to provision the device it gives me an error, even tough I can paste all the commands on the switch using the CLI.

! ### USER PORTS ###
interface range gi 1/0/1 - 22
 source #Conflict template DOT1X_CLOSED

Any help on how to troubleshoot this would be appreciated. I have looked in the apic-em-network-programmer log and it tells be there is a conflict but does not tell me why.

Who Me Too'd this topic