01-22-2018 01:12 PM - edited 03-01-2019 04:05 AM
I am trying to provision an IOS-XR device, A ZTP script on the dev ice is executed that call REST API to create the device on the NSO server. This works well but I would like to perform a sync-to at the end of the process to complete the provisioning sequence. Since the device does not exist yet how can I do this function ? I like to do it both using CLI (with the IOS-XR package) or netconf (with the yang models already installed)
Solved! Go to Solution.
01-25-2018 01:58 AM
Hi Patrick,
Yes you can do that. You can create a device and apply configuration to a device that doesn't exist outside of NSO. So you already know how to create a device in NSO. The next step is you can apply a template or configuration to a device in NSO. You might need to set operational data for the device so that you can apply configuration to it.
-Dan
01-23-2018 11:39 PM
Hi Patrick,
I'm not sure I follow exactly what you are asking. Can you explain what you are trying to do?
-Dan
01-24-2018 10:20 AM
Hello Daniel,
I create a set of scripts called at initial bootup time that register the device to the NSO server using REST API. the last step of the automatic provisioning of the system would be to make a REST call from the device to get its final configuration. I can issue a sync-to REST call but that requires the device to have an existing configuration on the NSO server.
My question is there a way to pre-configure a device on NSO that has not been created yet ? so as soon as the device is created it can fetch that configuration
01-25-2018 01:58 AM
Hi Patrick,
Yes you can do that. You can create a device and apply configuration to a device that doesn't exist outside of NSO. So you already know how to create a device in NSO. The next step is you can apply a template or configuration to a device in NSO. You might need to set operational data for the device so that you can apply configuration to it.
-Dan
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