06-26-2017 04:43 AM - edited 03-01-2019 03:53 AM
When creating config templates, should these always be using the xml <config-template> or are there situations where <config> should be used.
The Advanced NSO training has a mix of both styles.
Solved! Go to Solution.
06-26-2017 08:59 AM
<config-template... is the root of any configuration template you push in NSO, be it internal configuration to NSO or device configuration or other.
Directly under <config-template>, the typical nodes are <devices><device><config>...
It is possible that in examples during training sessions, the <config-template><devices><device> nodes have been omitted for whatever reason (probably space restrictions on the PowerPoint slides).
It is not possible to omit these nodes when used in NSO when applying them in packages.
The xml template files are checked for compliance with the YANG model structures when doing the "packages reload".
It is possible to use <config> or <config-template> as the root node in the xml template, as long as the end closing tag is matching it.
06-26-2017 08:59 AM
<config-template... is the root of any configuration template you push in NSO, be it internal configuration to NSO or device configuration or other.
Directly under <config-template>, the typical nodes are <devices><device><config>...
It is possible that in examples during training sessions, the <config-template><devices><device> nodes have been omitted for whatever reason (probably space restrictions on the PowerPoint slides).
It is not possible to omit these nodes when used in NSO when applying them in packages.
The xml template files are checked for compliance with the YANG model structures when doing the "packages reload".
It is possible to use <config> or <config-template> as the root node in the xml template, as long as the end closing tag is matching it.
04-10-2018 01:48 AM
Hi, I have a related question. I was trying to figure out how to execute <config-template> xml on NSO using northbound API. I looked at docs and ncs examples dir, but couldn't find it. Would you mind sharing the API syntax - REST or RESTCONF?
Thanks
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the NSO Developer community: