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:
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.
Solved! Go to Solution.
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.
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.
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.
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.
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.