06-19-2020 10:25 AM - edited 06-19-2020 02:22 PM
I created a template 'mytemplate' using RESTCONF PATCH
I want to deploy that to device 'router1'
<devices xmlns="http://tail-f.com/ns/ncs">
<template>
<name>mytemplate</name>
<ned-id>
<id xmlns:cisco-iosxr-cli-7.23="http://tail-f.com/ns/ned-id/cisco-iosxr-cli-7.23">cisco-iosxr-cli-7.23:cisco-iosxr-cli-7.23</id>
<config>
<hostname xmlns="http://tail-f.com/ned/cisco-ios-xr">{$hostname}</hostname>
</config>
</ned-id>
</devices>POST
http://{{NSO_IP}}:{{NSO_HTTP_PORT}}/restconf/data/tailf-ncs:devices/device={{SAMPLE_IOSXR_DEVICE}}/apply-template/ withBut I get this error:
<input> <template-name>mytemplate</template-name> <variable> <name>hostname</name> <value>'blah'</value> </variable> </input>
<output xmlns='http://tail-f.com/ns/ncs'>
<apply-template-result>
<device>router1</device>
<result>ok</result>
</apply-template-result>
</output>Solved! Go to Solution.
06-19-2020 02:22 PM
06-19-2020 02:22 PM
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide