cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
401
Views
5
Helpful
1
Replies

show configuration(IOS-XR) in YDK

maxno1988
Level 1
Level 1

Hello Everyone,

Is there a way to see loaded configuration before commiting it ? I'm making an analogy with Junos PyEZ library where it is possible to see difference between the running configuration and candidate one before commit.    

1 Reply 1

yangorelik
Spotlight
Spotlight

If device capabilities support candidate datastore, then device configuration consists of 2 phases: 1) building configuration in candidate datastore; 2) committing configuration from candidate to running datastore. When using NetconfServiceProvider with CrudService, these 2 phases performed automatically one after another. But with NetconfService the user has full control of the phases, and can validate configuration before committing it to running datastore. Please check this documentation for details. Also you can find multiple examples in the unit test code.

Yan Gorelik
YDK Solutions
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: