08-19-2019 01:48 AM
Hi Team ,
We are trying to automate gRPC related libraries , could you kindly help understand if there are gRPC CRUD and Codec services which we can leverage for our Automation. Currently I am able to find CRUD and Codec services for ydk but not for gRPC.
pip list output of ydk we are using in our Infra:
ydk 0.5.5a0
ydk-models-cisco-ios-xr 6.5.1
ydk-models-cisco-thinxr-install 6.5.1
ydk-models-ietf 0.1.5.post2
ydk-models-openconfig 0.1.2
Also if the services are available could you kindly help understand what are the dependencies and versions we would need to get these into the infra.
Thanks in advance for your time and inputs.
Thanks,
Thejaswi
Solved! Go to Solution.
09-06-2019 07:19 AM
There are hundreds of gNMI and CRUD services samples at this site.
08-19-2019 09:57 AM
Hello Thejaswi
The YDK employs gRPC for gNMI Services, based on Protobuf 0.4.0. It also includes CRUD operations using gNMI Service Provider. The Codec Service provides translation from Entity objects to JSON or XML encoded string and backwards. We have tons of sample-like applications, which you can use as pieces for your application, or just consider as live examples for demonstration of gNMI Service capabilities.
If this functionality can be useful for your application, you can start looking at gNMI service requirements and installation.
The last official YDK version, which supports above functionality, is 0.8.3.
Yan
08-22-2019 09:57 AM
Hi Yan ,
Thanks for the information. So you mean we can use the same gNMI object for gRPC as well and also CRUD services helps in converting to json ?
Let me go through the links shared and get back in case of any further queries.
Thanks,
Thejaswi
08-22-2019 10:43 AM
You can use CodecService and JsonSubtreeCodec to do translation from entity object to JSON string and backwards.
The gRPC building is limited to API provided by gNMISession. There is no external control on how the gRPCs are built. Id you need that, you can download the ydk-gen from GitHub and expand API to the level you need.
08-27-2019 12:01 AM
Thanks Yan ,
My understanding from your inputs is there is no specific services available for gRPC , but we can try to leverage gNMI services and make conversions to json using the CodecService and JsonSubtreeCodec services.
Please correct me if I am wrong.
Could you please help sharing gRPC also.
Thanks,
Thejaswi
08-27-2019 08:56 AM
Hi Thejaswi
Your understanding is correct.
I did not get though your last question: "Could you please help sharing gRPC also". Could you please elaborate, what specifically you are looking for.
Regards,
Yan
09-05-2019 10:38 PM
Hi Yan ,
Apologies for the delay in response. Was looking for sample APIs for gRPC also.
Thanks,
Thejaswi
09-06-2019 07:19 AM
There are hundreds of gNMI and CRUD services samples at this site.
09-06-2019 10:41 AM
Hi Yan ,
Thanks for the info shared , closing this query.
Thanks,
Thejaswi
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