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

Dry-run for yang-patch operation

tcragg1
Cisco Employee
Cisco Employee

I am experimenting with using the RFC8072 YANG Patch method to make changes to device configurations through NSO, and was trying to perform a dry-run to view the expected results of the operation. However, while sending the dry-run query parameter prevented the changes from being pushed to the network device, it only returned the following message, and not a dry-run of the changes:

 

 

 <yang-patch-status xmlns="urn:ietf:params:xml:ns:yang:ietf-yang-patch">
   <patch-id>test-patch</patch-id>
   <ok/>
* Connection #0 to host localhost left intact
 </yang-patch-status>

 

 

 

Is there a way to view the actual dry-run for a YANG patch operation in NSO (version 5.2.0.1)?

 

 

 

1 Accepted Solution

Accepted Solutions

rogaglia
Cisco Employee
Cisco Employee

You would need to upgrade your NSO,

In 5.3.2/5.2.1 CHANGE file, I see:

 

- restconf: Parameter dry-run did not work for YANG Patch requests, but
with this fix it does work.

 

View solution in original post

1 Reply 1

rogaglia
Cisco Employee
Cisco Employee

You would need to upgrade your NSO,

In 5.3.2/5.2.1 CHANGE file, I see:

 

- restconf: Parameter dry-run did not work for YANG Patch requests, but
with this fix it does work.