05-30-2019 07:22 PM
I am trying to push configurations to Aruba switches using a variablised template and also a JSON configuration file.
I kept having issues with device configuration with the error message "Config push status: Failed, template is corrupted". So I thought I'd strip it right back section by section to find the problem area.
I found nothing. So now I have created a brand new template as follows:
I have a brand new variables file as follows:
I still get the exact same error. I had figured that if I don't specify anything but a hostname it should only configure a hostname and all other config would just be default out of the box configuration on the device.
Is there any way we can enable more verbose logging/auditing to find the actual location of the error?
Solved! Go to Solution.
06-02-2019 05:41 PM
Thanks for that. Turns out what the issue was the entire time - is we were running some configuration in the template to change the default VLAN.
When doing this - you also need to do the following:
no untagged 1-28
Basically the way the template tool works - is any configuration you move which results in the switch negating config elsewhere, you need to do the same in your template file. In our case because moving the untagged ports to a different vlan other than the default we needed to negate the untagged command on vlan 1.
The documentation does seem very vague on templating - would be good to see a more in depth guide to templating.