Hi,
I have made a Jinja2 template and trying to get it to work using the built in variables in DNAC.
I have the following template:
!####### Template til Switch ######
!
!###### Hostname/Domain By-Lokation-UnderKrydsfelt-TypeNummer ######
!
hostname {{ __device.hostname }}
!
But as soon as I try to deploy it, I get an debug message in the onboarding service log, and cannot advance in the GUI under PnP.
2021-08-29 20:47:26,519 | DEBUG | qtp1807648168-21 | | c.c.p.a.s.impl.TemplateServiceImpl | response object recieved: {"templateId":"57095a67-5771-4587-a226-18476c18b44d","cliPreview":null,"deviceId":null,"validationErrors":[{"type":"RUNTIME","lineNumber":5,"message":"Cannot resolve property 'hostname' in ''"}]} |
Any comments are welcome