Heads Up :
The post you are writing will appear in a public forum. Please ensure all content is appropriate for public consumption. Review the employee guidelines for the community here.
Hello, I'm having an error when trying to encode an Entity in XML with ydk 0.8.5. For example, I have a "connectivity-service" grouping with child "end-point" described here tapi-connectivity. In another yang model tapi-photonic, the "end-point" is a...
Hello, I'm experiencing an issue when trying to decode JSON payload to Python entity. For example, I have a JSON like this:{"key1": { "key2": [0.56,11.2,8.3,6.4e2,0.56,27.8]}}And the model like this: container key1 {
leaf-list key2 {
type dec...
Hi Yan, Thanks to your suggestion, I am able to encode by populating the Capabilities of all TAPI YANG models using the Moco Runner Rest Server in ydk-gen/test/db.json. I leave the code snippet here in case someone may need it.# First, add YANG modul...
Hi Yan, I put everything in the attached .zip file, since the page does not allow to upload .py and .tar.gz file. The tree hierarchy of related YANG models can be found here:tapi-common@2020-04-23.tree tapi-connectivity@2020-06-16.tree tapi-photonic-...
Hi Yan, Thank you for your response. It's true that I need to add subtree=Tree for the case of end_point.However, I still get the error RuntimeError: YServiceError: Could not find node tapi-photonic:specsIf I call any grouping, which is defined in th...
Hi Yan, Thank you for your reply. Your suggestion helped me to deal with the issue. I leave the code snippet here in case someone may need it.from ydk.entity_utils import JsonSubtreeCodec
from ydk.models.<bundle>.<module> import TestEntity
PAYLOAD =...