Closed ldacol closed 2 years ago
Please read carefully your error message. It states: "Invalid JSON data (missing begin-array).. ", meaning that translation from YAML to JSON was incorrect. Have you validated the JSON string? What is it? Regarding the identityref value. It must include prefix to specify module, from which the identity is taken. In JSON encoding the value of the identityref leaf should have format: "module:value". In XML encoding the module is identified by its namespace. If you agree with my findings, please close the issue.
It was my finding as well that adding the module:value would allow the encoding to XML. I have some issues though with the XML code when it comes to be applied to the device as it would return an error. As it may be device dependent closing this issue
Issue tracker is ONLY used for reporting bugs. Please use the YDK Community for any support issues.
Expected Behavior
Leaf values with identityref mapped to module prefix should resolve correctly
Current Behavior
No mapping of module prefixes to module names. Preceding the module name to the identity such as install-protocol-eq : openconfig-policy-types: BGP allows the generation of the XML code however it is unclear the system will accept configuration in which the header xmlns is present in the tag.
Steps to Reproduce
Run the configuration in the script below through decode/encode functions
Your Script
Logs
Enable logging and post the logs below
System Information
Python 3.6, Linux RHEL 7.9