I'm having trouble editing the config via API.
I used both the GET and PUT method to edit my configuration, however, it seems the attached config file is not changing on vManage.
Notes: I got the status code ok after running both API.
Does the PUT method run all the steps like check template status and validation on a configuration like an image below?
Where can I find the edited config sent from API on the vManage screen?
/**********************Edit: 2021/10/14 ************************/
STILL NOT SOLVED
What I have tested so far
Follow the steps from both sites to attach the device template.
https://community.cisco.com/t5/sd-wan-and-cloud-networking/api-template/td-p/3857741
https://developer.cisco.com/docs/sdwan/#!device-template/attach-device-templates
Get the current device template from API.
These codes return the whole text of the CLI template and return the status code Ok.
Generate device input.
I got the status code ok with JSON text formatted CSV-related information.
Attach device template
■ This is what I got after hit attach on vManage.
[12-Oct-2021 16:48:30 JST] Configuring device with cli template: DIAT-RSR02-E999950863-20211012
[12-Oct-2021 16:48:30 JST] Generating configuration from template
[12-Oct-2021 16:48:30 JST] Checking and creating device in vManage
[12-Oct-2021 16:48:48 JST] Device is online
[12-Oct-2021 16:48:48 JST] Updating device configuration in vManage
[12-Oct-2021 16:48:50 JST]
syntax error: unknown command
Error: on line 30: memory free low-watermark processor 200000
[12-Oct-2021 16:48:50 JST] Processing timeout. Failed to Configuring device with CLI template
■ Copy CLI template from running device then paste it into the template that I generate from API, but still got the same errors.
■ This is what I got after deleting the line with a syntax error, which is "Error: on line 30: memory free low-watermark processor 200000".
[12-Oct-2021 16:52:44 JST] Configuring device with cli template: DIAT-RSR02-E999950863-20211012
[12-Oct-2021 16:52:44 JST] Generating configuration from template
[12-Oct-2021 16:52:44 JST] Checking and creating device in vManage
[12-Oct-2021 16:53:02 JST] Device is online
[12-Oct-2021 16:53:02 JST] Updating device configuration in vManage
[12-Oct-2021 16:53:04 JST] -----------^
syntax error: expecting
appnav-controller-group -
private -
service-context -
service-node-group -
Error: on line 32: no service tcp-small-servers
[12-Oct-2021 16:53:04 JST] Processing timeout. Failed to Configuring device with CLI template
Is there any specific template format that I need to attach device?
I was able to create a new template from API and can view it from vManage, but unable to attach a device to the template from both API and manually attach from vManage.
regards.
Tak