-
Notifications
You must be signed in to change notification settings - Fork 342
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Help needed with xmljson #555
Comments
Team, Any help with this. Thanks, |
Was PYANG_XSLT_DIR set when you first ran pyang -f jsonxsl? This plugin will look for PYANG_XSLT_DIR and use that value, and that dir will then be found in the generated xslt script. |
Thank you very much. I re-executed pyang -f jsonxsl and it worked without any errors. pyang -f jsonxsl -o nw.xsl openconfig-network-instance.yang cisco-nx-openconfig-network-instance-deviations.yang One follow up question if you can please answer. If I have the below payload (nw.xml) and try to execute the below to convert it to json should it report an error for the value of the vlan-id below. As per the yang file, this property is supposed to be an uint16, whereas the below data instance has this value as a float.
Thanks, |
In |
Thank you. |
Hi,
I am referring to the below wiki for xmljson conversion.
https://github.com/mbj4668/pyang/wiki/XmlJson
I was able to generate the stylesheet. But having issues with converting xml instance document to json.
I have set the following environment variables.
However, xsltproc seems to looking for the files in the default installed directory. Shouldn't it be looking for the files in the below directory.
Is there any other option I am missing ?
Thanks,
The text was updated successfully, but these errors were encountered: