You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I am trying to convert a set of yang files in my directory:
pyang -p yang/ -f json-schema --pliugindir /home/externals/pyang-json-schema-plugin/ yang/*
but this command is throwing "too many files to convert" error. How do I do this?
Thanks.
The text was updated successfully, but these errors were encountered:
Hi @mjoshiNetElastic! The plugin currently works only on a single YANG module at a time. So unless you actually need to output a set of modules at once, you could always resort to some shell trickery like:
for file in yang/*; do pyang -f json-schema --plugindir /home/externals/pyang-json-schema-plugin/ $file; done
mjoshiNetElastic
added a commit
to mjoshiNetElastic/pyang-json-schema-plugin
that referenced
this issue
Apr 16, 2018
How would this work where one file augments another? If I run the tool on the file with the top level container, it generates JSON fine, but if I run on the file that augments the container, the resulting JSON file effectively has no schema information in it. Is it possible to use this tool in this scenario?
Hi, I am trying to convert a set of yang files in my directory:
pyang -p yang/ -f json-schema --pliugindir /home/externals/pyang-json-schema-plugin/ yang/*
but this command is throwing "too many files to convert" error. How do I do this?
Thanks.
The text was updated successfully, but these errors were encountered: