cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
997
Views
1
Helpful
2
Comments
michael-moody
Community Member

Attempting to create an NSO Service Template that templatizes a specific configuration for various downstream devices, whereby I can update the template variables via API and have the configuration published to all downstream devices subscribed to the template. 

When navigating to the /var/opt/ncs/packages directory, I execute the following command:

ncs-make-package --build --service-skeleton <template name>

I've used a working configuration that's already been synchronized to NSO of a device whereby I've displayed the configuration in XML format and added it to the "templates" directory of the directory structure that was created via the NCS MAKE operation listed above.  I created variables out of specific configuration items via the {/<variable name>} method in the XML format derived from actual configuration.  I've made sure identify the "servicepoint" and assure that the first and last line in the XML tagging schema includes "config-template" as the start and end parameters.  I've also run a "package reload" command in the NCS_CLI operational mode to load the template that was created.

While in NCS_CLI operational mode, when I run the "show packages package <package name>" command, I see an error whereby the oper-status error-info lists that there is an unknown element 'name'.  Note that there is an XML name tag that is both opened and closed appropriately, and there is no variable of that nomenclature.  I'm not clear on where that error comes from.

Also, assuming that I'm able to successfully create this package without error, I've not seen any API documentation that shows how to execute a POST or even a PATCH API call to send variables to the newly created template in order to provision devices.

PLEASE HELP!  

2 Comments
michael-moody
Community Member

Correction to how the service package was built in the /var/opt/ncs/packages directory.  The correct command was:

ncs-make-package --build --no-test --service-skeleton template <package name>

Martin L
VIP
VIP

thanks for sharing !

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 community: