- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2024 10:54 PM
Hi, following https://developer.cisco.com/docs/sdwan/device-template/ doc to push the changes to update variables and i am getting pushID after post call. but the changes are not reflecting and throwing below error when get call is executed with push ID -
Failed to update configuration - com.viptela.vmanage.server.deviceconfig.template.TemplateException: com.viptela.vmanage.server.deviceconfig.template.TemplateException: java.lang.NullPointerException"
My payload -
"deviceTemplateList":[
{
"templateId":"{deviceID}",
"device":[
{
"csv-status":"complete",
"csv-deviceId":"{deviceID}",
"csv-deviceIP":"1.2.3.4",
"csv-host-name":"hostname02",
"//system/host-name":"hostname02",
"//system/system-ip":"1.2.3.4",
"//system/site-id":"1000",
"csv-templateId":"{templateID}",
"selected":"true",
"/2/vpnx_ipsec_intf01_num/interface/tunnel-destination":"1.2.3.4",
"//virtual-applications/virtual-application/te/te-mgmt-ip": "1.2.3.4/30",
"//virtual-applications/virtual-application/te/te-vpg-ip":"1.2.3.4",
"//virtual-applications/virtual-application/te/name-server":"1.2.3.4",
"//virtual-applications/virtual-application/te/hostname":"hostname",
"/0/vpn-instance/ip/route/0.0.0.0/0/next-hop/vpn0_default_next_hop01/address":"1.2.3.4",
"deviceModel":"model"
}
],
"isEdited":false,
"isMasterEdited":false
}
]
Solved! Go to Solution.
- Labels:
-
Catalyst SD-WAN
Accepted Solutions

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-24-2024 02:11 AM
@nitinkdas this is related the other thread about sd-wan, looks like you made some progress here but the error message "Failed to update configuration - com.viptela.vmanage.server.deviceconfig.template.TemplateException: com.viptela.vmanage.server.deviceconfig.template.TemplateException: java.lang.NullPointerException" means that there's a null pointer exception somewhere in the device configuration template processing.
From what i recall occurs when a variable or object is being accessed without being initialized or when a reference is pointing to a nonexistent object.I would try using a more simple template and see if this works first, or capture the request in the UI and check what is being sent.
Hope this helps.
Connect with me https://bigevilbeard.github.io

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-24-2024 02:11 AM
@nitinkdas this is related the other thread about sd-wan, looks like you made some progress here but the error message "Failed to update configuration - com.viptela.vmanage.server.deviceconfig.template.TemplateException: com.viptela.vmanage.server.deviceconfig.template.TemplateException: java.lang.NullPointerException" means that there's a null pointer exception somewhere in the device configuration template processing.
From what i recall occurs when a variable or object is being accessed without being initialized or when a reference is pointing to a nonexistent object.I would try using a more simple template and see if this works first, or capture the request in the UI and check what is being sent.
Hope this helps.
Connect with me https://bigevilbeard.github.io
