cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
500
Views
10
Helpful
1
Replies

Extract configuration in raw format

RichardD2
Level 1
Level 1

We have a use case involving ZTP and have been able to add a device with the XML accept-empty-capabilities tag to handle the fact that the device is not reachable. We've also been able to apply a device template and have NSO's copy of the configuration reflect the changes. Our challenge comes as we'd like to be able to get the configuration out of CDB in a format we could use to build a CLI compatible configuration. Currently the only way we can see the configuration is in XML format. Is it possible to get data out of CDB in a format that a cisco router can use directly?

thanks

1 Reply 1

rogaglia
Cisco Employee
Cisco Employee
Getting configs to be “copy and pasted” into the devices is always challenging because you need to make sure that you are starting from the same initial configuration.

One way to solve your problem is to first commit a template that represent that “well known initial config”.

Then you can apply the template that represent the augmented initial config and perform a “commit dry-run outformat native” and store the result.