cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
598
Views
0
Helpful
2
Replies

Config Templates - XML opening

martmitc
Cisco Employee
Cisco Employee

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.

1 Accepted Solution

Accepted Solutions

mtidemar
Cisco Employee
Cisco Employee

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

View solution in original post

2 Replies 2

mtidemar
Cisco Employee
Cisco Employee

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

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

Getting Started

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: