cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
394
Views
1
Helpful
1
Replies

Variables not updating using post call

nitinkdas
Level 1
Level 1

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

}
]

1 Accepted Solution

Accepted Solutions

@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.

Please mark this as helpful or solution accepted to help others
Connect with me https://bigevilbeard.github.io

View solution in original post

1 Reply 1

@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.

Please mark this as helpful or solution accepted to help others
Connect with me https://bigevilbeard.github.io