cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
382
Views
0
Helpful
0
Replies

Read sample with pretty print

saalvare
Cisco Employee
Cisco Employee

Nathan writes:

Hi

Is here a sample of a read operation with something equivalent to a pretty print of the configuration that has been read?

Many thanks

Nathan

You can use the CRUD service in combination with the codec service to pprint the configuration you read.  You can find an OC-BGP example using YDK 0.5.0 (or later ) at:

oc-bgp-20-ydk.py · GitHub

Down the road, you can expect the codec service to support other encodings (e.g. JSON, GPB, YAML, etc).

0 Replies 0